Skip to content

Commit

Permalink
Score chain pawn also by rank
Browse files Browse the repository at this point in the history
Use the (rescaled) CandidatePassed[] table
that is already rank based.

Passed both short TC
LLR: 2.95 (-2.94,2.94) [-1.50,4.50]
Total: 11048 W: 2272 L: 2135 D: 6641

And long TC
LLR: 2.97 (-2.94,2.94) [0.00,6.00]
Total: 4116 W: 769 L: 645 D: 2702

bench: 8440524
  • Loading branch information
joergoster authored and mcostalba committed Oct 18, 2013
1 parent 3cddb0c commit 25cb851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pawns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ namespace {
value -= Backward[opposed][f];

if (chain)
value += ChainMember[f];
value += ChainMember[f] + CandidatePassed[relative_rank(Us, s)] / 2;

if (candidate)
{
Expand Down

0 comments on commit 25cb851

Please sign in to comment.