1
0
Fork 0
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:
Marco Costalba 2012-12-15 13:11:10 +01:00
parent 3ddf91d9d1
commit 52bbf372bb

View file

@ -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)