Skip to content

Commit 4b3a0fd

Browse files
R-Pelegmcostalba
authored andcommitted
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 <[email protected]>
1 parent 05e31c5 commit 4b3a0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/evaluate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
767767
// be very big, and so capturing a single attacking piece can therefore
768768
// result in a score change far bigger than the value of the captured piece.
769769
score -= KingDanger[Us == Search::RootColor][attackUnits];
770-
margins[Us] += mg_value(KingDanger[Us == Search::RootColor][attackUnits]);
770+
margins[Us] += mg_value(KingDanger[Us == Search::RootColor][attackUnits]) / 2;
771771
}
772772

773773
if (Trace)

0 commit comments

Comments
 (0)