mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 20:19:15 +00:00
Fix ep move for real this time
This commit is contained in:
parent
db8112ec9e
commit
8925a28cf1
1 changed files with 5 additions and 5 deletions
|
@ -1265,12 +1265,12 @@ WDLScore search(Position& pos, WDLScore alpha, WDLScore beta, ProbeState* result
|
||||||
if (epValue != WDLScoreNone && !moveCount)
|
if (epValue != WDLScoreNone && !moveCount)
|
||||||
value = epValue;
|
value = epValue;
|
||||||
|
|
||||||
// Here alpha stores the best value out of the previous search
|
// Here alpha stores the best value of the ply-1 search, note that in case
|
||||||
if (value > alpha)
|
// we only have a losing ep move alpha == value.
|
||||||
return *result = (value == epValue ? ZEROING_MOVE : OK), value;
|
if (alpha >= value)
|
||||||
|
return *result = (alpha > WDLDraw || alpha == epValue ? ZEROING_MOVE : OK), alpha;
|
||||||
|
|
||||||
*result = alpha > WDLDraw ? ZEROING_MOVE : OK;
|
return *result = OK, value;
|
||||||
return alpha;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Add table
Reference in a new issue