X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=bcd5eb14e1b57cb77d92d81cd3bd5a8640920bb8;hp=3d87b9c3b5c7998121366efb615f58525247d5f5;hb=0d69ac33ff1b0258c9b18dca48f7b8b40fab5713;hpb=bdb1bfecfb5665329a7d66f4c366a9736bab6c0b diff --git a/src/movepick.h b/src/movepick.h index 3d87b9c3..bcd5eb14 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -26,6 +26,7 @@ //// #include "depth.h" +#include "history.h" #include "lock.h" #include "position.h" @@ -37,8 +38,6 @@ struct EvalInfo; struct SearchStack; -extern SearchStack EmptySearchStack; - /// MovePicker is a class which is used to pick one legal move at a time from /// the current position. It is initialized with a Position object and a few /// moves we have reason to believe are good. The most important method is @@ -66,7 +65,7 @@ public: PH_STOP }; - MovePicker(const Position& p, bool pvnode, Move ttm, const SearchStack& ss, Depth d); + MovePicker(const Position& p, Move ttm, Depth d, const History& h, SearchStack* ss = NULL); Move get_next_move(); Move get_next_move(Lock& lock); int number_of_moves() const; @@ -82,11 +81,10 @@ private: Move pick_move_from_list(); const Position& pos; + const History& H; Move ttMove, mateKiller, killer1, killer2; Bitboard pinned, dc; MoveStack moves[256], badCaptures[64]; - bool pvNode; - Depth depth; int phaseIndex; int numOfMoves, numOfBadCaptures; int movesPicked;