X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=9459b8c2a389e9e2aec27e830ba078931b845df7;hp=317a0fc9165beed06c70d777f2f59f67fc26fc8b;hb=47f988f05fb86b0cd9187885b1cfa942addbeee6;hpb=b96db269a87549ceefaf8b812c050292f81b6c5c diff --git a/src/movepick.h b/src/movepick.h index 317a0fc9..9459b8c2 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -41,22 +41,23 @@ public: MovePicker(const Position&, Move, Depth, const History&, Search::Stack*, Value); MovePicker(const Position&, Move, Depth, const History&, Square); MovePicker(const Position&, Move, const History&, PieceType); - Move next_move(); + template Move next_move(); private: void score_captures(); void score_noncaptures(); void score_evasions(); - void next_phase(); + void generate_next(); const Position& pos; const History& H; + Search::Stack* ss; Depth depth; Move ttMove; MoveStack killers[2]; Square recaptureSquare; int captureThreshold, phase; - MoveStack *curMove, *lastMove, *lastNonCapture, *badCaptures; + MoveStack *cur, *end, *endQuiets, *endBadCaptures; MoveStack moves[MAX_MOVES]; };