search: TranspositionTable::save param use oldAlpha instead of alpha

Same with morris 0.2

self play move history not change.
This commit is contained in:
Calcitem 2021-04-20 23:08:02 +08:00
parent 786a1e55fd
commit 7edc9a42f3
1 changed files with 6 additions and 1 deletions

View File

@ -281,6 +281,11 @@ Value search(Position *pos, Sanmill::Stack<Position> &ss, Depth depth, Depth ori
const bool atRoot = (originDepth == depth);
#ifdef TRANSPOSITION_TABLE_ENABLE
// check transposition-table
const Value oldAlpha = alpha;
Bound type = BOUND_NONE;
const Value probeVal = TranspositionTable::probe(posKey, depth, alpha, beta, type
@ -471,7 +476,7 @@ Value search(Position *pos, Sanmill::Stack<Position> &ss, Depth depth, Depth ori
#ifdef TRANSPOSITION_TABLE_ENABLE
TranspositionTable::save(bestValue,
depth,
TranspositionTable::boundType(bestValue, alpha, beta),
TranspositionTable::boundType(bestValue, oldAlpha, beta),
posKey
#ifdef TT_MOVE_ENABLE
, bestMove