evaluation now returns score relative to side to move

This commit is contained in:
rektdie committed 2024-04-29 08:35:58 +02:00
1 parent 3507637d8f
commit 567405454d
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -39,5 +39,5 @@ int Evaluate(Board &board) {
}
}
return score;
return board.sideToMove ? -score : score;
}