const ButterflyHistory* mh,
const CapturePieceToHistory* cph,
const PieceToHistory** ch,
- const PawnHistory& ph,
+ const PawnHistory* ph,
Move cm,
const Move* killers) :
pos(p),
const ButterflyHistory* mh,
const CapturePieceToHistory* cph,
const PieceToHistory** ch,
- const PawnHistory& ph,
+ const PawnHistory* ph,
Square rs) :
pos(p),
mainHistory(mh),
// Constructor for ProbCut: we generate captures with SEE greater
// than or equal to the given threshold.
-MovePicker::MovePicker(
- const Position& p, Move ttm, Value th, const CapturePieceToHistory* cph, const PawnHistory& ph) :
+MovePicker::MovePicker(const Position& p, Move ttm, Value th, const CapturePieceToHistory* cph) :
pos(p),
captureHistory(cph),
- pawnHistory(ph),
ttMove(ttm),
threshold(th) {
assert(!pos.checkers());
m.value += (*continuationHistory[2])[pc][to] / 4;
m.value += (*continuationHistory[3])[pc][to];
m.value += (*continuationHistory[5])[pc][to];
+ m.value += (*pawnHistory)[pawn_structure(pos)][pc][to];
// bonus for checks
m.value += bool(pos.check_squares(pt) & to) * 16384;
: pt != PAWN ? bool(to & threatenedByPawn) * 15000
: 0)
: 0;
-
- m.value += pawnHistory[pawn_structure(pos)][pc][to];
}
else // Type == EVASIONS
else
m.value = (*mainHistory)[pos.side_to_move()][from_to(m)]
+ (*continuationHistory[0])[pos.moved_piece(m)][to_sq(m)]
- + pawnHistory[pawn_structure(pos)][pos.moved_piece(m)][to_sq(m)];
+ + (*pawnHistory)[pawn_structure(pos)][pos.moved_piece(m)][to_sq(m)];
}
}