adjusted mate score and clamping eval | bench 3024652
This commit is contained in:
1 parent
0df4b40efb
commit
44843fa6a8
3 files changed
+5
-4
No files matched your search
+2
-1
@@ -76,7 +76,8 @@ static int32_t Forward(const Board& board,
|
||||
}
|
||||
|
||||
int16_t Network::Evaluate(const Board& board) {
|
||||
return Forward(board, this);
|
||||
return std::clamp(Forward(board, this), (-SEARCH::MATE_SCORE + SEARCH::MAX_PLY),
|
||||
(SEARCH::MATE_SCORE - SEARCH::MAX_PLY));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user