'Refactored by Sourcery'

This commit is contained in:
Sourcery AI
2023-05-24 23:55:27 +00:00
committed by amjad
parent 7c1e336f14
commit 71d02673a9
70 changed files with 582 additions and 835 deletions

View File

@@ -35,7 +35,7 @@ def play_game() -> None:
except ValueError:
print("Please enter a number.")
prompt_human = "How many do you wish to remove "
matches = matches - choice_human
matches -= choice_human
if matches == 0:
print("You poor boob! You took the last match! I gotcha!!")
print("Ha ! Ha ! I beat you !!\n")
@@ -48,7 +48,7 @@ def play_game() -> None:
choice_computer = 1
elif 1 < matches < 4:
choice_computer = matches - 1
matches = matches - choice_computer
matches -= choice_computer
if matches == 0:
print("You won, floppy ears !")
print("Think you're pretty smart !")