Sorry about the vague title, it's a bit hard to explain. I'm trying to figure out how to get the probability that you reach a certain point in my game.
The way it works is that you start off with 22 things (including yourself), and each time you press enter a random thing explodes and you get a point.
The twist is that if something explodes, that thing cannot be exploded again. So now there are 21 options.
If you explode yourself, the game obviously ends. Here's my simplified code:
```
#Dynamite simulator
import random, time
killOptions = ["Yourself","A Bush","Rodeen","A Tree","Your Laptop","Your Water","Your Friend","John Paul","Your Teacher","A Rastin","Peter Yao","The Earth","The ISS","Armagedon","Thor","Jacob's IPad","The Bomb","A Random Short Person Who's Name Is Coincidentally Jehan","Grass","The Imposter","Bob The Builder","Math Equations"]
killLength = len(killOptions)
points = 0
def GameOver():
time.sleep(3)
print("\nYou blew yourself up, so you died. Duh.")
if points != killLength:
print(f'\nYou got {points} points.')
else:
print(f'\nYou got the maximum score of {killLength}. Lucky...')
quit()
def BlowUp():
print(random.choice(boomOptions))
thingToBlowUp = random.choice(killOptions)
killOptions.remove(thing)
print(f'\nYou killed {thing}.')
if thing == "Yourself": GameOver()
print('Press Enter To Blow Dynamite')
while True:
input()
BlowUp()
points += 1
print(f'There are {len(killOptions)} more things to blow up.')
```
I'm kinda bad at math, so how would you get the probability of someone getting n points?
> I asked at stack overflow, but they redirected me here