15 lines
349 B
Python
15 lines
349 B
Python
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():
|
|
action = view.get_action(game)
|
|
game.play_action(action)
|
|
view.conclude(game)
|