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:
parent
786a1e55fd
commit
7edc9a42f3
|
@ -281,6 +281,11 @@ Value search(Position *pos, Sanmill::Stack<Position> &ss, Depth depth, Depth ori
|
||||||
const bool atRoot = (originDepth == depth);
|
const bool atRoot = (originDepth == depth);
|
||||||
|
|
||||||
#ifdef TRANSPOSITION_TABLE_ENABLE
|
#ifdef TRANSPOSITION_TABLE_ENABLE
|
||||||
|
|
||||||
|
// check transposition-table
|
||||||
|
|
||||||
|
const Value oldAlpha = alpha;
|
||||||
|
|
||||||
Bound type = BOUND_NONE;
|
Bound type = BOUND_NONE;
|
||||||
|
|
||||||
const Value probeVal = TranspositionTable::probe(posKey, depth, alpha, beta, type
|
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
|
#ifdef TRANSPOSITION_TABLE_ENABLE
|
||||||
TranspositionTable::save(bestValue,
|
TranspositionTable::save(bestValue,
|
||||||
depth,
|
depth,
|
||||||
TranspositionTable::boundType(bestValue, alpha, beta),
|
TranspositionTable::boundType(bestValue, oldAlpha, beta),
|
||||||
posKey
|
posKey
|
||||||
#ifdef TT_MOVE_ENABLE
|
#ifdef TT_MOVE_ENABLE
|
||||||
, bestMove
|
, bestMove
|
||||||
|
|
Loading…
Reference in New Issue