feat: make white player play
This commit is contained in:
parent
c48403ba16
commit
6b69bbc116
@ -198,8 +198,11 @@ class myPlayer(PlayerInterface):
|
|||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
prediction = self.model(go_board)
|
prediction = self.model(go_board)
|
||||||
|
|
||||||
|
if color == Goban.Board._BLACK:
|
||||||
return prediction
|
return prediction
|
||||||
|
|
||||||
|
return 1 - prediction
|
||||||
|
|
||||||
def getPlayerMove(self):
|
def getPlayerMove(self):
|
||||||
if self._board.is_game_over():
|
if self._board.is_game_over():
|
||||||
print("Referee told me to play but the game is over!")
|
print("Referee told me to play but the game is over!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user