Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat = True
- print("""Poison Penny
- ------------
- Poison penny is a game for two players. Twelve pennies and a nickel are laid out.
- Each player can take one or two pennies, alternating turns until only the
- nickel (the poison) is left. Whoever’s turn it is, when only the poisoned nickel is left, loses.
- """)
- pennies = 12
- p1 = input("Enter player 1's name: ")
- p2 = input("Enter player 2's name: ")
- a = True
- b = False
- coon = True
- cunt = True
- while repeat:
- while a == True:
- if pennies <= 0:
- print("""
- """ + p1 + """, you lose because you must take the nickel.
- Congratulations """ + p2 + """, you are the winner""")
- a = False
- b = False
- else:
- if coon:
- fuck_you = int(input("""
- There are """ + str(pennies) + """ and 1 nickel left.
- """ + p1 + """, how many pennies do you wish to take? """))
- else:
- fuck_you = int(input(p1 + ", how many pennies do you wish to take? "))
- if fuck_you == 1 or fuck_you == 2:
- if pennies <= 1:
- if fuck_you == 2:
- a = True
- coon = False
- else:
- coon = True
- pennies -= fuck_you
- a = False
- b = True
- else:
- a = False
- pennies -= fuck_you
- b = True
- coon = True
- else:
- coon = False
- a = True
- while b == True:
- if pennies <= 0:
- print("""
- """ + p2 + """, you lose because you must take the nickel.
- Congratulations """ + p1 + """, you are the winner""")
- b = False
- a = False
- else:
- if cunt:
- eat_shit = int(input("""
- There are """ + str(pennies) + """ and 1 nickel left.
- """ + p2 + """, how many pennies do you wish to take? """))
- else:
- eat_shit = int(input(p2 + ", how many pennies do you wish to take? "))
- if eat_shit == 1 or eat_shit == 2:
- if pennies <= 1:
- if eat_shit == 2:
- b = True
- cunt = False
- else:
- cunt = True
- pennies -= eat_shit
- b = False
- a = True
- else:
- b = False
- pennies -= eat_shit
- a = True
- cunt = True
- else:
- cunt = False
- b = True
- if a == False and b == False:
- fart = input("""
- Would you like to play again(Y/N)? """)
- if fart == 'n'.lower():
- print("""
- Thank you for playing. Please come back soon.""")
- break
- else:
- pennies = 12
- a = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement