Initial version of lab

This commit is contained in:
Chris Proctor
2022-04-28 15:03:52 -04:00
commit 900c4622ad
8 changed files with 214 additions and 0 deletions

14
play.py Normal file
View File

@@ -0,0 +1,14 @@
from ttt_game import TTTGame
from ttt_view import TTTView
from ttt_player import TTTHumanPlayer
player0 = TTTHumanPlayer("Player 1")
player1 = TTTHumanPlayer("Player 2")
game = TTTGame(player0, player1)
view = TTTView()
view.greet(game)
while not game.is_over():
move = view.get_move(game)
game.play_move(move)
view.conclude(game)