Computer player speaks move

This commit is contained in:
Chris Proctor 2022-04-28 19:14:40 -04:00
parent f10c39531f
commit aef53d4689
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ class TTTComputerPlayer:
def choose_move(self, game):
"Chooses a random move from the moves available."
return random.choice(game.get_valid_moves())
move = random.choice(game.get_valid_moves())
print(f"{self.name} chooses {move}.")
return move
def get_symbol(self, game):
"Returns this player's symbol in the game."