Skip to content

Commit

Permalink
uci correct eval
Browse files Browse the repository at this point in the history
  • Loading branch information
stevexyz committed Apr 26, 2018
1 parent 9def7ce commit 035530e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ValueNetwork/OnePlyEngineUci.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
if board.is_checkmate():
val = -999999 # ensure to follow up
else:
val = eval.EvaluatePositionB(board)[0]
val = eval.EvaluatePositionB(board)[0] * ( -1 if board.turn==chess.BLACK else 1 )
print("info currmove "+str(m)+" score "+str(-val))
if val<bestval: # minimum value for adversary
bestmove = m
Expand Down

0 comments on commit 035530e

Please sign in to comment.