Remove player dependencie in validate_input()

This commit is contained in:
Yorick Barbanneau 2023-12-15 01:41:10 +01:00
parent 72b35e6ea3
commit 7b49cac308

View file

@ -54,7 +54,7 @@ class HumanPlayerEngine(PlayerEngine):
x = int(input[0])
y = int(input[1])
if not board.is_valid_move(int(player), x, y):
if not board.is_valid_move(board._nextPlayer, x, y):
return None
return [board._nextPlayer, x, y]