mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Adjust reductions based on history and cmh tables
STC: LLR: 4.06 (-2.94,2.94) [0.00,5.00] Total: 149395 W: 28029 L: 27208 D: 94158 LTC: LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 9628 W: 1368 L: 1217 D: 7043 bench: 8076724 Resolves #565
This commit is contained in:
@@ -1000,10 +1000,11 @@ moves_loop: // When in check search starts from here
|
|||||||
&& cmh[pos.piece_on(to_sq(move))][to_sq(move)] <= VALUE_ZERO))
|
&& cmh[pos.piece_on(to_sq(move))][to_sq(move)] <= VALUE_ZERO))
|
||||||
r += ONE_PLY;
|
r += ONE_PLY;
|
||||||
|
|
||||||
// Decrease reduction for moves with a good history
|
// Decrease reduction for moves with a good history and
|
||||||
if ( thisThread->history[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO
|
// increase reduction for moves with a bad history
|
||||||
&& cmh[pos.piece_on(to_sq(move))][to_sq(move)] > VALUE_ZERO)
|
int rDecrease = ( thisThread->history[pos.piece_on(to_sq(move))][to_sq(move)]
|
||||||
r = std::max(DEPTH_ZERO, r - ONE_PLY);
|
+ cmh[pos.piece_on(to_sq(move))][to_sq(move)]) / 14980;
|
||||||
|
r = std::max(DEPTH_ZERO, r - rDecrease * ONE_PLY);
|
||||||
|
|
||||||
// Decrease reduction for moves that escape a capture. Filter out castling
|
// Decrease reduction for moves that escape a capture. Filter out castling
|
||||||
// moves because are coded as "king captures rook" and break make_move().
|
// moves because are coded as "king captures rook" and break make_move().
|
||||||
|
|||||||
Reference in New Issue
Block a user