mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Fix 'improving' condition
Because VALUE_NONE is 30002, it happens that after a check the next move is never an improving one. After this patch bench signature is independent from VALUE_NONE actual value. bench: 4303194
This commit is contained in:
parent
fff6b9f061
commit
5769509d72
1 changed files with 4 additions and 1 deletions
|
@ -775,7 +775,10 @@ moves_loop: // When in check and at SpNode search starts from here
|
||||||
MovePicker mp(pos, ttMove, depth, History, countermoves, ss);
|
MovePicker mp(pos, ttMove, depth, History, countermoves, ss);
|
||||||
CheckInfo ci(pos);
|
CheckInfo ci(pos);
|
||||||
value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc
|
value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc
|
||||||
improving = ss->staticEval >= (ss-2)->staticEval;
|
improving = ss->staticEval >= (ss-2)->staticEval
|
||||||
|
|| ss->staticEval == VALUE_NONE
|
||||||
|
||(ss-2)->staticEval == VALUE_NONE;
|
||||||
|
|
||||||
singularExtensionNode = !RootNode
|
singularExtensionNode = !RootNode
|
||||||
&& !SpNode
|
&& !SpNode
|
||||||
&& depth >= (PvNode ? 6 * ONE_PLY : 8 * ONE_PLY)
|
&& depth >= (PvNode ? 6 * ONE_PLY : 8 * ONE_PLY)
|
||||||
|
|
Loading…
Add table
Reference in a new issue