feat: make white player play

This commit is contained in:
Nemo D'ACREMONT 2025-05-18 12:26:14 +02:00
parent c48403ba16
commit 6b69bbc116
No known key found for this signature in database
GPG Key ID: 85F245EC3BB1E022

View File

@ -198,7 +198,10 @@ class myPlayer(PlayerInterface):
with torch.no_grad():
prediction = self.model(go_board)
return prediction
if color == Goban.Board._BLACK:
return prediction
return 1 - prediction
def getPlayerMove(self):
if self._board.is_game_over():