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;
|
||||||
}
|
}
|
||||||
+1
-3
@@ -10,8 +10,6 @@ int main() {
|
|||||||
initSliderAttacks();
|
initSliderAttacks();
|
||||||
|
|
||||||
Board board;
|
Board board;
|
||||||
|
|
||||||
std::cout << Evaluate(board) << '\n';
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user