Enhance player display

This commit is contained in:
Yorick Barbanneau 2023-12-21 17:18:26 +01:00
parent e76cfdb753
commit 8c825506f5

View file

@ -182,9 +182,10 @@ if __name__ == '__main__':
move = bplayer.get_move(game) move = bplayer.get_move(game)
else: else:
move = wplayer.get_move(game) move = wplayer.get_move(game)
print("Player {} move: {}".format( print("Player {} move: {},{}".format(
game._nextPlayer, "Black (X)" if move[0] == 2 else "White (O)",
move move[1],
move[2]
)) ))
game.push(move) game.push(move)
print("Game end - score black:{}, white:{}".format(game.heuristique(1), game.heuristique(2))) print("Game end - score black:{}, white:{}".format(game.heuristique(1), game.heuristique(2)))