Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.98 KB | None | 0 0
  1. repeat = True
  2. print("""Poison Penny
  3. ------------
  4.  
  5. Poison penny is a game for two players. Twelve pennies and a nickel are laid out.
  6. Each player can take one or two pennies, alternating turns until only the
  7. nickel (the poison) is left. Whoever’s turn it is, when only the poisoned nickel is left, loses.
  8. """)
  9. pennies = 12
  10. p1 = input("Enter player 1's name: ")
  11. p2 = input("Enter player 2's name: ")
  12. a = True
  13. b = False
  14. coon = True
  15. cunt = True
  16. while repeat:
  17.     while a == True:
  18.         if pennies <= 0:
  19.             print("""
  20. """ + p1 + """, you lose because you must take the nickel.
  21. Congratulations """ + p2 + """, you are the winner""")
  22.             a = False
  23.             b = False
  24.         else:
  25.             if coon:
  26.                 fuck_you = int(input("""
  27. There are """ + str(pennies) + """ and 1 nickel left.
  28. """ + p1 + """, how many pennies do you wish to take? """))
  29.             else:
  30.                 fuck_you = int(input(p1 + ", how many pennies do you wish to take? "))
  31.             if fuck_you == 1 or fuck_you == 2:
  32.                 if pennies <= 1:
  33.                     if fuck_you == 2:
  34.                         a = True
  35.                         coon = False
  36.                     else:
  37.                         coon = True
  38.                         pennies -= fuck_you
  39.                         a = False
  40.                         b = True
  41.                 else:
  42.                     a = False
  43.                     pennies -= fuck_you
  44.                     b = True
  45.                     coon = True
  46.             else:
  47.                 coon = False
  48.                 a = True
  49.  
  50.     while b == True:
  51.         if pennies <= 0:
  52.             print("""
  53. """ + p2 + """, you lose because you must take the nickel.
  54. Congratulations """ + p1 + """, you are the winner""")
  55.             b = False
  56.             a = False
  57.         else:
  58.             if cunt:
  59.                 eat_shit = int(input("""
  60. There are """ + str(pennies) + """ and 1 nickel left.
  61. """ + p2 + """, how many pennies do you wish to take? """))
  62.             else:
  63.                 eat_shit = int(input(p2 + ", how many pennies do you wish to take? "))
  64.             if eat_shit == 1 or eat_shit == 2:
  65.                 if pennies <= 1:
  66.                     if eat_shit == 2:
  67.                         b = True
  68.                         cunt = False
  69.                     else:
  70.                         cunt = True
  71.                         pennies -= eat_shit
  72.                         b = False
  73.                         a = True
  74.                 else:
  75.                     b = False
  76.                     pennies -= eat_shit
  77.                     a = True
  78.                     cunt = True
  79.             else:
  80.                 cunt = False
  81.                 b = True
  82.     if a == False and b == False:
  83.         fart = input("""
  84. Would you like to play again(Y/N)? """)
  85.         if fart == 'n'.lower():
  86.             print("""
  87. Thank you for playing. Please come back soon.""")
  88.             break
  89.         else:
  90.             pennies = 12
  91.             a = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement