-// Constructor for quiescence search
-MovePicker::MovePicker(const Position& p,
- Move ttm,
- Depth d,
- const ButterflyHistory* mh,
- const CapturePieceToHistory* cph,
- const PieceToHistory** ch,
- const PawnHistory* ph,
- Square rs) :
- pos(p),
- mainHistory(mh),
- captureHistory(cph),
- continuationHistory(ch),
- pawnHistory(ph),
- ttMove(ttm),
- recaptureSquare(rs),
- depth(d) {
- assert(d <= 0);
-
- stage = (pos.checkers() ? EVASION_TT : QSEARCH_TT) + !(ttm && pos.pseudo_legal(ttm));