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
+1 -3

No files matched your search

+1 -1
View File
@@ -39,5 +39,5 @@ int Evaluate(Board &board) {
} }
} }
return score; return board.sideToMove ? -score : score;
} }
-2
View File
@@ -11,7 +11,5 @@ int main() {
Board board; Board board;
std::cout << Evaluate(board) << '\n';
return 0; return 0;
} }