mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Split at root!
Another great success by Joona ! After 5876 games at 10"+0.1 Mod vs Orig: 1073 - 849 - 3954 ELO +13 (+- 5.2) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
13bc6ba2c6
commit
ffa150bec3
@@ -1226,15 +1226,14 @@ split_point_start: // At split points actual search starts from here
|
||||
}
|
||||
|
||||
// Step 19. Check for split
|
||||
if ( !RootNode
|
||||
&& !SpNode
|
||||
if ( !SpNode
|
||||
&& depth >= Threads.min_split_depth()
|
||||
&& bestValue < beta
|
||||
&& Threads.available_slave_exists(pos.thread())
|
||||
&& !StopRequest
|
||||
&& !thread.cutoff_occurred())
|
||||
Threads.split<FakeSplit>(pos, ss, &alpha, beta, &bestValue, depth,
|
||||
threatMove, moveCount, &mp, PvNode);
|
||||
threatMove, moveCount, &mp, NT);
|
||||
}
|
||||
|
||||
// Step 20. Check for mate and stalemate
|
||||
@@ -2210,9 +2209,11 @@ void ThreadsManager::idle_loop(int threadID, SplitPoint* sp) {
|
||||
memcpy(ss, tsp->ss - 1, 4 * sizeof(SearchStack));
|
||||
(ss+1)->sp = tsp;
|
||||
|
||||
if (tsp->pvNode)
|
||||
if (tsp->nodeType == Root)
|
||||
search<SplitPointRoot>(pos, ss+1, tsp->alpha, tsp->beta, tsp->depth);
|
||||
else if (tsp->nodeType == PV)
|
||||
search<SplitPointPV>(pos, ss+1, tsp->alpha, tsp->beta, tsp->depth);
|
||||
else
|
||||
else if (tsp->nodeType == NonPV)
|
||||
search<SplitPointNonPV>(pos, ss+1, tsp->alpha, tsp->beta, tsp->depth);
|
||||
|
||||
assert(threads[threadID].state == Thread::SEARCHING);
|
||||
|
||||
Reference in New Issue
Block a user