mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Full three fold repetition detection only at root node
This commit is contained in:
parent
5436d98fc5
commit
77c91ac1ba
1 changed files with 5 additions and 1 deletions
|
@ -524,7 +524,7 @@ namespace {
|
||||||
if (!RootNode)
|
if (!RootNode)
|
||||||
{
|
{
|
||||||
// Step 2. Check for aborted search and immediate draw
|
// Step 2. Check for aborted search and immediate draw
|
||||||
if (Signals.stop || (PvNode?pos.is_draw<false,false>():pos.is_draw<false,true>()) || ss->ply > MAX_PLY)
|
if (Signals.stop || pos.is_draw<false,true>() || ss->ply > MAX_PLY)
|
||||||
return DrawValue[pos.side_to_move()];
|
return DrawValue[pos.side_to_move()];
|
||||||
|
|
||||||
// Step 3. Mate distance pruning. Even if we mate at the next move our score
|
// Step 3. Mate distance pruning. Even if we mate at the next move our score
|
||||||
|
@ -538,6 +538,10 @@ namespace {
|
||||||
if (alpha >= beta)
|
if (alpha >= beta)
|
||||||
return alpha;
|
return alpha;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(pos.is_draw<false,false>()) return DrawValue[pos.side_to_move()];
|
||||||
|
}
|
||||||
|
|
||||||
// Step 4. Transposition table lookup
|
// Step 4. Transposition table lookup
|
||||||
// We don't want the score of a partial search to overwrite a previous full search
|
// We don't want the score of a partial search to overwrite a previous full search
|
||||||
|
|
Loading…
Add table
Reference in a new issue