feat: make white player play
This commit is contained in:
parent
c48403ba16
commit
6b69bbc116
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user