mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 10:36:26 +08:00
Simplification to use only one counter move.
STC http://tests.stockfishchess.org/tests/view/5518dca30ebc5902160ec5d0 LLR: 2.95 (-2.94,2.94) [-3.50,0.50] Total: 18868 W: 3638 L: 3530 D: 11700 LTC http://tests.stockfishchess.org/tests/view/5518f7ed0ebc5902160ec5d4 LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 69767 W: 11019 L: 10973 D: 47775 Extracted from http://tests.stockfishchess.org/tests/view/5511028a0ebc5902160ec40b Original patch by hxim. All credit goes to him. Bench: 7664249 Resolves #320
This commit is contained in:
@@ -48,11 +48,8 @@ struct Stats {
|
||||
|
||||
void update(Piece pc, Square to, Move m) {
|
||||
|
||||
if (m == table[pc][to].first)
|
||||
return;
|
||||
|
||||
table[pc][to].second = table[pc][to].first;
|
||||
table[pc][to].first = m;
|
||||
if (m != table[pc][to])
|
||||
table[pc][to] = m;
|
||||
}
|
||||
|
||||
void update(Piece pc, Square to, Value v) {
|
||||
@@ -70,7 +67,7 @@ private:
|
||||
|
||||
typedef Stats< true, Value> GainsStats;
|
||||
typedef Stats<false, Value> HistoryStats;
|
||||
typedef Stats<false, std::pair<Move, Move> > MovesStats;
|
||||
typedef Stats<false, Move> MovesStats;
|
||||
typedef Stats<false, HistoryStats> CounterMovesHistoryStats;
|
||||
|
||||
|
||||
@@ -88,7 +85,7 @@ public:
|
||||
|
||||
MovePicker(const Position&, Move, Depth, const HistoryStats&, const CounterMovesHistoryStats&, Square);
|
||||
MovePicker(const Position&, Move, const HistoryStats&, const CounterMovesHistoryStats&, PieceType);
|
||||
MovePicker(const Position&, Move, Depth, const HistoryStats&, const CounterMovesHistoryStats&, Move*, Search::Stack*);
|
||||
MovePicker(const Position&, Move, Depth, const HistoryStats&, const CounterMovesHistoryStats&, Move, Search::Stack*);
|
||||
|
||||
template<bool SpNode> Move next_move();
|
||||
|
||||
@@ -102,10 +99,10 @@ private:
|
||||
const HistoryStats& history;
|
||||
const CounterMovesHistoryStats& counterMovesHistory;
|
||||
Search::Stack* ss;
|
||||
Move* countermoves;
|
||||
Move countermove;
|
||||
Depth depth;
|
||||
Move ttMove;
|
||||
ExtMove killers[4];
|
||||
ExtMove killers[3];
|
||||
Square recaptureSquare;
|
||||
Value captureThreshold;
|
||||
int stage;
|
||||
|
||||
Reference in New Issue
Block a user