mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Remove moveMalus
Passed STC: https://tests.stockfishchess.org/tests/view/656e0bb86980e15f69c763fa LLR: 3.15 (-2.94,2.94) <-1.75,0.25> Total: 123008 W: 30973 L: 30831 D: 61204 Ptnml(0-2): 368, 14032, 32568, 14162, 374 closes https://github.com/official-stockfish/Stockfish/pull/4905 No functional change
This commit is contained in:
@@ -1699,18 +1699,15 @@ void update_all_stats(const Position& pos,
|
||||
thisThread->pawnHistory[pawn_structure(pos)][moved_piece][to_sq(bestMove)]
|
||||
<< quietMoveBonus;
|
||||
|
||||
int moveMalus = bestValue > beta + 168 ? quietMoveMalus // larger malus
|
||||
: stat_malus(depth); // smaller malus
|
||||
|
||||
// Decrease stats for all non-best quiet moves
|
||||
for (int i = 0; i < quietCount; ++i)
|
||||
{
|
||||
thisThread->pawnHistory[pawn_structure(pos)][pos.moved_piece(quietsSearched[i])]
|
||||
[to_sq(quietsSearched[i])]
|
||||
<< -moveMalus;
|
||||
thisThread->mainHistory[us][from_to(quietsSearched[i])] << -moveMalus;
|
||||
<< -quietMoveMalus;
|
||||
thisThread->mainHistory[us][from_to(quietsSearched[i])] << -quietMoveMalus;
|
||||
update_continuation_histories(ss, pos.moved_piece(quietsSearched[i]),
|
||||
to_sq(quietsSearched[i]), -moveMalus);
|
||||
to_sq(quietsSearched[i]), -quietMoveMalus);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user