mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
simplify logic for history based pruning
STC LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 34255 W: 6292 L: 6194 D: 21769 LTC LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 89914 W: 11769 L: 11739 D: 66406 Bench: 6581936 Closes #1066
This commit is contained in:
committed by
Joona Kiiski
parent
2d96e8fbe9
commit
ced29248c9
@@ -66,6 +66,7 @@ struct Stats {
|
||||
const T* operator[](Piece pc) const { return table[pc]; }
|
||||
T* operator[](Piece pc) { return table[pc]; }
|
||||
void clear() { std::memset(table, 0, sizeof(table)); }
|
||||
void fill(const Value& v) { std::fill(&table[0][0], &table[PIECE_NB-1][SQUARE_NB-1]+1, v); };
|
||||
void update(Piece pc, Square to, Move m) { table[pc][to] = m; }
|
||||
void update(Piece pc, Square to, Value v) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user