Enhance player display
This commit is contained in:
parent
e76cfdb753
commit
8c825506f5
1 changed files with 4 additions and 3 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue