generated from mwc/lab_tic_tac_toe
(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:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user