mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Revert "Halve king eval margin"
This reverts commit 4b3a0fdab0.
As Gary says: " It failed when I tried it at long TC previously, and only
barely passed this time. Some anecdotal evidence is that it hurts vs other
engines as well (the Lightspeed rating list showed a 16 elo drop from previous
best version - still +- 5 error bars on both, but that's still significant)"
I also agree that if we have some doubts (like in this case) it is better to
be safe than sorry.
bench: 4615572
This commit is contained in:
@@ -767,7 +767,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
// be very big, and so capturing a single attacking piece can therefore
|
||||
// result in a score change far bigger than the value of the captured piece.
|
||||
score -= KingDanger[Us == Search::RootColor][attackUnits];
|
||||
margins[Us] += mg_value(KingDanger[Us == Search::RootColor][attackUnits]) / 2;
|
||||
margins[Us] += mg_value(KingDanger[Us == Search::RootColor][attackUnits]);
|
||||
}
|
||||
|
||||
if (Trace)
|
||||
|
||||
Reference in New Issue
Block a user