Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- #random number 1-6 to represent the bullet
- bullet = random.randint(1,6)
- alive = True
- #loop until "dead"
- while alive:
- input("Press enter to spin the chamber...")
- #random number 1-6 to represet current chamber
- current = random.randint(1,6)
- input("Press enter to pull the trigger...")
- if current == bullet:
- alive = False
- else:
- print ("*CLICK*...You survived this round...")
- print("*BANG*...You are dead! Not quite how you're reading this..")
Add Comment
Please, Sign In to add comment