B Need to find the odds for my game

  • B
  • Thread starter Thread starter Alanay
  • Start date Start date
  • Tags Tags
    Game
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.
 
Mathematics 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 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.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top