mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-04-28 11:53:21 -07:00
Remove unused variable
This commit is contained in:
@@ -78,14 +78,14 @@ def main() -> None:
|
|||||||
|
|
||||||
# Start game loop
|
# Start game loop
|
||||||
input("\nPress Enter to start the Game:\n")
|
input("\nPress Enter to start the Game:\n")
|
||||||
_end = False
|
|
||||||
while True:
|
while True:
|
||||||
game.print_pegs()
|
game.print_pegs()
|
||||||
|
|
||||||
# Players Move
|
# Players Move
|
||||||
command = input("\nYOUR MOVE - Number of PILE, Number of Object? ")
|
command = input("\nYOUR MOVE - Number of PILE, Number of Object? ")
|
||||||
game.remove_pegs(command)
|
game.remove_pegs(command)
|
||||||
if _end := game.check_for_win():
|
if game.check_for_win():
|
||||||
print("\nPlayer Wins the Game, Congratulations!!")
|
print("\nPlayer Wins the Game, Congratulations!!")
|
||||||
input("\nPress any key to exit")
|
input("\nPress any key to exit")
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user