X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=94a0e5f9548afb864361ae826f2cef914703a302;hp=3d87b9c3b5c7998121366efb615f58525247d5f5;hb=c1b60269a26b2ba1c8882b8f382f0e3e435c1962;hpb=3d0b60b0653852198011306a4c8d34f8ef98fc5e diff --git a/src/movepick.h b/src/movepick.h index 3d87b9c3..94a0e5f9 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, bool pvnode, 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,6 +81,7 @@ 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];