search: Adjust TranspositionTable::save params

like morris 0.2, but not same.

Use:
TranspositionTable::boundType(bestValue, alpha, beta),
Not use oldAlpha

self play change last few moves, white win more quickly.

From:
(3,5)->(2,5)
(1,5)->(1,4)
(2,5)->(1,5)
(1,6)->(1,7)
(1,5)->(1,6)
(1,7)->(2,7)
-(2,4)
(1,6)->(1,5)
(2,7)->(1,7)
(1,5)->(1,6)
(1,7)->(2,7)
-(1,2)
Player2 win!

To:
(3,5)->(2,5)
(1,6)->(1,7)
(2,5)->(3,5)
(1,7)->(2,7)
-(2,4)
(3,5)->(2,5)
(1,5)->(1,6)
-(1,2)
Player2 win!
This commit is contained in:
Calcitem 2021-04-20 23:03:42 +08:00
parent 7a97102c50
commit feed1fb2ef
1 changed files with 1 additions and 2 deletions

View File

@ -473,8 +473,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,
bestValue >= beta ? BOUND_LOWER : TranspositionTable::boundType(bestValue, alpha, beta),
BOUND_UPPER,
posKey posKey
#ifdef TT_MOVE_ENABLE #ifdef TT_MOVE_ENABLE
, bestMove , bestMove