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) {
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;
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();
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;