From 4b3a0fdab03a7529ede42891963d3036712a0bd5 Mon Sep 17 00:00:00 2001 From: homoSapiensSapiens Date: Tue, 16 Jul 2013 18:52:55 +0300 Subject: [PATCH] Halve king eval margin But still keep the same original margin for score. Passed both short TC test LR: 2.95 (-2.94,2.94) Total: 3710 W: 845 L: 726 D: 2139 And long TC LLR: 2.95 (-2.94,2.94) Total: 57859 W: 10939 L: 10532 D: 36388 bench: 4769737 Signed-off-by: Marco Costalba --- src/evaluate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index bb9a2f97..207892f4 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]); + margins[Us] += mg_value(KingDanger[Us == Search::RootColor][attackUnits]) / 2; } if (Trace) -- 2.39.2