diff --git a/src/classes/Engines.py b/src/classes/Engines.py index 697d4a5..2acd833 100644 --- a/src/classes/Engines.py +++ b/src/classes/Engines.py @@ -71,7 +71,7 @@ class PlayerEngine: def _show_better_move(self, move, heuristic): self.logger.debug(" -> Found a better move: {},{} | heuristic:{}".format( - chr(move[1] + 65), move[2], + move[1], chr(move[2] + 65), heuristic )) @@ -136,7 +136,7 @@ class HumanPlayerEngine(PlayerEngine): if input == 'help': text = "Possible move:" for m in board.legal_moves(): - text += " {}{}".format(chr(65+m[1]), m[2]) + text += " {}{}".format(m[1], chr(65+m[2])) print(text) return None diff --git a/src/game.py b/src/game.py index 208393f..0b46880 100755 --- a/src/game.py +++ b/src/game.py @@ -215,7 +215,7 @@ if __name__ == '__main__': print("Player {} move: {},{}".format( "Black (X)" if move[0] == 2 else "White (O)", move[1], - move[2] + chr(65+move[2]) )) game.push(move)