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)
else:
move = wplayer.get_move(game)
print("Player {} move: {}".format(
game._nextPlayer,
move
print("Player {} move: {},{}".format(
"Black (X)" if move[0] == 2 else "White (O)",
move[1],
move[2]
))
game.push(move)
print("Game end - score black:{}, white:{}".format(game.heuristique(1), game.heuristique(2)))