(Commit summary. Replace this with a one-line description of this commit.)

All of nim
What I changed
(Replace this with a description of what you changed in this commit. This should be 1-2 sentences.)
Completed the nim game.
Why I changed it
(Describe why you made these changes. Were you working toward a goal? Did you reorganize your code? This should be 1-2 sentences.)
Made additions to work towards completing the game. Tried my best to make the game as properly functional as I could.
Estimate for remaining time to finish assignment: [0 minutes]
This commit is contained in:
root
2024-02-22 08:51:45 -05:00
parent f5b1b03b9a
commit 9d0c6174ec
4 changed files with 53 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
from nim.game_stub import NimGameStub
from nim.game_stub import NimGame
class NimView:
def __init__(self, player0, player1):
self.players = [player0, player1]
self.game = NimGameStub()
self.game = NimGame()
def greet(self):
print(f"{self.players[0].name} and {self.players[1].name}, welcome to Nim.")