Skip to content

Commit

Permalink
Change history reduction in LMR to be a full ply.
Browse files Browse the repository at this point in the history
STC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 9829 W: 2142 L: 1998 D: 5689

LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 27162 W: 4802 L: 4692 D: 17668

Bench: 7284120

Resolves #53

(cherry picked from commit d6613b7)
  • Loading branch information
uriblass authored and nmrugg committed Mar 9, 2015
1 parent 6925447 commit 834cd83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/search.cpp
Expand Up @@ -928,12 +928,10 @@ Skill *skill_p;
{
ss->reduction = reduction<PvNode>(improving, depth, moveCount);

if (!PvNode && cutNode)
if ( (!PvNode && cutNode)
|| History[pos.piece_on(to_sq(move))][to_sq(move)] < 0)
ss->reduction += ONE_PLY;

else if (History[pos.piece_on(to_sq(move))][to_sq(move)] < 0)
ss->reduction += ONE_PLY / 2;

if (move == countermoves[0] || move == countermoves[1])
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);

Expand Down

0 comments on commit 834cd83

Please sign in to comment.