evaluation now returns score relative to side to move
This commit is contained in:
1 parent
3507637d8f
commit
567405454d
2 files changed
+2
-4
No files matched your search
+1
-1
@@ -39,5 +39,5 @@ int Evaluate(Board &board) {
|
||||
}
|
||||
}
|
||||
|
||||
return score;
|
||||
return board.sideToMove ? -score : score;
|
||||
}
|
||||
Reference in new issue
Block a user