I completed converting game_stub to game for Nim.

My strategy was to use the game.py from Tic Tac Toe and try to compare
what was happening in Nim to TTT.
This commit is contained in:
root
2024-12-15 00:38:37 -05:00
parent 70fdcaac79
commit cd99fae57d
4 changed files with 78 additions and 7 deletions

View File

@@ -1,11 +1,11 @@
from nim.game_stub import NimGameStub
from nim.game import NimGame
from nim.view import NimView
from nim.player import HumanNimPlayer, ComputerNimPlayer
player0 = HumanNimPlayer(input("What's your name? "))
player1 = ComputerNimPlayer("Robot")
view = NimView(player0, player1)
game = NimGameStub()
game = NimGame()
view.greet()
state = game.get_initial_state()