Skip to content

Commit

Permalink
Loosened trigger condition for king safety
Browse files Browse the repository at this point in the history
Reduce eval discontinuity becuase now we kick in
king safety evaluation in many more cases.

Passed both short TC:
LLR: 2.95 (-2.94,2.94) [-1.50,4.50]
Total: 8708 W: 1742 L: 1613 D: 5353

And long TC:
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 6743 W: 1122 L: 990 D: 4631

bench: 6835416
  • Loading branch information
Ralph Stößer authored and mcostalba committed Dec 23, 2013
1 parent 8aa4f3f commit 899a2c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,7 @@ Value do_evaluate(const Position& pos) {
Score score = ei.pi->king_safety<Us>(pos, ksq);

// Main king safety evaluation
if ( ei.kingAttackersCount[Them] >= 2
&& ei.kingAdjacentZoneAttacksCount[Them])
if (ei.kingAttackersCount[Them])
{
// Find the attacked squares around the king which have no defenders
// apart from the king itself
Expand Down

0 comments on commit 899a2c0

Please sign in to comment.