Coord was inverted (is <y><x>)

This commit is contained in:
Yorick Barbanneau 2023-12-22 22:38:37 +01:00
parent e39a1380f4
commit da7f83735b
2 changed files with 3 additions and 3 deletions

View file

@ -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