Fix condition in get_player_name()

This commit is contained in:
Yorick Barbanneau 2023-12-20 18:24:55 +01:00
parent 9c541c90ea
commit 935d3b8f23

View file

@ -21,7 +21,7 @@ class PlayerEngine:
@staticmethod
def get_player_name(player):
return 'White (O)' if player is 2 else 'Black (X)'
return 'White (O)' if player == 2 else 'Black (X)'
class RandomPlayerEngine(PlayerEngine):
def get_move(self, board):