mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Change history reduction in LMR to be a full ply.
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
This commit is contained in:
parent
fed3e752ae
commit
d6613b7589
1 changed files with 2 additions and 4 deletions
|
@ -823,12 +823,10 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
{
|
{
|
||||||
ss->reduction = reduction<PvNode>(improving, depth, moveCount);
|
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;
|
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])
|
if (move == countermoves[0] || move == countermoves[1])
|
||||||
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
|
ss->reduction = std::max(DEPTH_ZERO, ss->reduction - ONE_PLY);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue