Coord was inverted (is <y><x>)
This commit is contained in:
parent
e39a1380f4
commit
da7f83735b
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue