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;
}
+1 -3
View File
@@ -10,8 +10,6 @@ int main() {
initSliderAttacks();
Board board;
std::cout << Evaluate(board) << '\n';
return 0;
}