mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Don't need to check for bestValue < beta to split
With rearrangement of fail high code this condition is no more necessary. Found by Jörg Oster. No fuctional change.
This commit is contained in:
parent
3ddf91d9d1
commit
52bbf372bb
1 changed files with 2 additions and 1 deletions
|
@ -1003,9 +1003,10 @@ split_point_start: // At split points actual search starts from here
|
||||||
// Step 19. Check for splitting the search
|
// Step 19. Check for splitting the search
|
||||||
if ( !SpNode
|
if ( !SpNode
|
||||||
&& depth >= Threads.min_split_depth()
|
&& depth >= Threads.min_split_depth()
|
||||||
&& bestValue < beta
|
|
||||||
&& Threads.available_slave_exists(thisThread))
|
&& Threads.available_slave_exists(thisThread))
|
||||||
{
|
{
|
||||||
|
assert(bestValue < beta);
|
||||||
|
|
||||||
bestValue = Threads.split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
|
bestValue = Threads.split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
|
||||||
depth, threatMove, moveCount, mp, NT);
|
depth, threatMove, moveCount, mp, NT);
|
||||||
if (bestValue >= beta)
|
if (bestValue >= beta)
|
||||||
|
|
Loading…
Add table
Reference in a new issue