X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=6b5d89c093ff690e7fb41c60dfc7ad6774fe5cb2;hp=9aed12e18770d56bbef7b3315ec182d16c4758eb;hb=0de92576100bba948cae854ebb9cd5a7a9502b43;hpb=6f6be95bad6f5371d9979de85f7f5892309b7aee diff --git a/src/movepick.h b/src/movepick.h index 9aed12e1..6b5d89c0 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, *lastQuiet, *badCaptures; + MoveStack *curMove, *lastMove, *lastQuiet, *lastBadCapture; MoveStack moves[MAX_MOVES]; };