Skip to content

Commit

Permalink
Queen vs. 3 pieces imbalance
Browse files Browse the repository at this point in the history
Passed both STC
LLR: 7.32 (-2.94,2.94) [-1.50,4.50]
Total: 98108 W: 18087 L: 17576 D: 62445

And LTC
LLR: 2.95 (-2.94,2.94) [0.00,6.00]
Total: 15082 W: 2417 L: 2248 D: 10417

bench: 7717336
  • Loading branch information
joergoster authored and mcostalba committed Apr 3, 2014
1 parent c15b132 commit 299afcd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/material.cpp
Expand Up @@ -115,6 +115,17 @@ namespace {

value += pc * v;
}

// Queen vs. 3 minors slightly favours the minors
if (pieceCount[Us][QUEEN] == 1 && pieceCount[Them][QUEEN] == 0)
{
int n = pieceCount[Them][KNIGHT] - pieceCount[Us][KNIGHT];
int b = pieceCount[Them][BISHOP] - pieceCount[Us][BISHOP];

if ((n == 2 && b == 1) || (n == 1 && b == 2))
value -= 66 * 16;
}

return value;
}

Expand Down

0 comments on commit 299afcd

Please sign in to comment.