mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Prevent the use of nullmove TT value only at verification search
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
f3809f2a18
commit
abae3c5678
+2
-2
@@ -1306,7 +1306,7 @@ namespace {
|
|||||||
tte = TT.retrieve(posKey);
|
tte = TT.retrieve(posKey);
|
||||||
ttMove = (tte ? tte->move() : MOVE_NONE);
|
ttMove = (tte ? tte->move() : MOVE_NONE);
|
||||||
|
|
||||||
if (tte && ok_to_use_TT(tte, depth, beta, ply, nullStatus == ALLOW_NULLMOVE))
|
if (tte && ok_to_use_TT(tte, depth, beta, ply, nullStatus != VERIFY_NULLMOVE))
|
||||||
{
|
{
|
||||||
ss[ply].currentMove = ttMove; // Can be MOVE_NONE
|
ss[ply].currentMove = ttMove; // Can be MOVE_NONE
|
||||||
return value_from_tt(tte->value(), ply);
|
return value_from_tt(tte->value(), ply);
|
||||||
@@ -1389,7 +1389,7 @@ namespace {
|
|||||||
// Do zugzwang verification search for high depths, don't store in TT
|
// Do zugzwang verification search for high depths, don't store in TT
|
||||||
// if search was stopped.
|
// if search was stopped.
|
||||||
if ( ( depth < 6 * OnePly
|
if ( ( depth < 6 * OnePly
|
||||||
|| search(pos, ss, beta, depth-5*OnePly, ply, FORBID_NULLMOVE, threadID) >= beta)
|
|| search(pos, ss, beta, depth-5*OnePly, ply, VERIFY_NULLMOVE, threadID) >= beta)
|
||||||
&& !AbortSearch
|
&& !AbortSearch
|
||||||
&& !TM.thread_should_stop(threadID))
|
&& !TM.thread_should_stop(threadID))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user