From b0fd2b6b983cd85c1f018577ca260e68568e4672 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Wed, 24 Jul 2013 07:43:40 +0200 Subject: [PATCH] Revert "Halve king eval margin" This reverts commit 4b3a0fdab03a7529ede42891963d3036712a0bd5. 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 --- src/evaluate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index b63615a9..3f01d564 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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) -- 2.39.2