Need to find the odds for my game

  • Context: High School 
  • Thread starter Thread starter Alanay
  • Start date Start date
  • Tags Tags
    Game
Click For Summary

Discussion Overview

The discussion revolves around calculating the odds of losing in a grid-based game where players select numbers and a line subsequently destroys blocks on the grid. The focus is on understanding the probabilities associated with different selections and configurations within the game, including scenarios involving diagonal selections.

Discussion Character

  • Mathematical reasoning
  • Exploratory

Main Points Raised

  • One participant describes a game setup involving a 10x10 grid and seeks to calculate the odds of losing based on number selections and the mechanics of block destruction.
  • Another participant agrees with the initial calculation of a 10% chance of losing if only the number 0 is chosen, citing that 10 out of 100 cells are destroyed.
  • A later reply suggests that there are 20 ways to choose a line in the game, indicating that all configurations have the same probability and encourages checking for collisions among selected blocks.
  • Participants express interest in how to calculate odds when multiple blocks are chosen, particularly in diagonal arrangements.

Areas of Agreement / Disagreement

There appears to be agreement on the basic calculation of losing odds when selecting a single number, but the discussion on more complex scenarios involving multiple selections and configurations remains unresolved.

Contextual Notes

The discussion includes assumptions about the uniformity of cell selection and the mechanics of block destruction, which may not be fully detailed. The implications of diagonal selections and their impact on probability calculations are also not fully explored.

Alanay
Messages
61
Reaction score
4
Okay so I have made a game, it's a grid 10x10 going from 0-99. I need to find out the odds going up from 1 to 9 numbers. 9 is the limit or else it's possible for them to go in a diagonal line across the board and lose every time. That's because after 5-10 seconds a line will appear destroying 10 blocks going vertically or horizontally. So there's a 1-100 chance any number will be chosen, then there's a 50/50 chance it will go vertically or horizontally, if I chose just the number 0 do I have a 10% chance to lose? Because there's a 1% chance right off the bat it will get chosen, then 18% chance one of the blocks adjacent to it will be chosen, then the 18% halves because it can got in the other direction. Can someone check my math or give me a way to figure this out please?

You can play a demo of the game here to understand better: http://codepen.io/sotacan/pen/MeKEjY

Click on 1-9 numbers and just hit confirm, then wait for the line to fully appear.
 
Physics news on Phys.org
Alanay said:
if I chose just the number 0 do I have a 10% chance to lose?
Yes. In that case there is an even easier calculation: all cells are the same (they are in exactly one row and one column), and 10 cells get destroyed, giving a 10% chance that your chosen cell is among them.
 
  • Like
Likes   Reactions: Alanay
mfb said:
Yes. In that case there is an even easier calculation: all cells are the same (they are in exactly one row and one column), and 10 cells get destroyed, giving a 10% chance that your chosen cell is among them.

Thank you, now how would I figure out if they chose say 9 blocks from 0-9 (1-10 shown in the demo)? And they could also do it in a diagonal line, like 1, 10, 12, 21 for example.
 
In the most general case: There are 20 ways to choose a line, they all have the same probability. Go through all of them, check for collisions.
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 41 ·
2
Replies
41
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K