We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b89735 commit b1585baCopy full SHA for b1585ba
65_Nim/python/Traditional_NIM.py
@@ -78,14 +78,14 @@ def main() -> None:
78
79
# Start game loop
80
input("\nPress Enter to start the Game:\n")
81
- _end = False
+
82
while True:
83
game.print_pegs()
84
85
# Players Move
86
command = input("\nYOUR MOVE - Number of PILE, Number of Object? ")
87
game.remove_pegs(command)
88
- if _end := game.check_for_win():
+ if game.check_for_win():
89
print("\nPlayer Wins the Game, Congratulations!!")
90
input("\nPress any key to exit")
91
break
0 commit comments