X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovepick.h;h=920a97573029fedb093e0ba981e5c188b620df36;hp=56efb321aedf238a7d8b1ae52ca1e1e26f037f58;hb=339bb8a524a0a6af093b383da9f61b31504be9fe;hpb=e1ed67aacbe7fb4b462b9141d3137bed0a3ea70b diff --git a/src/movepick.h b/src/movepick.h index 56efb321..920a9757 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" @@ -64,7 +65,7 @@ public: PH_STOP }; - MovePicker(const Position& p, bool pvnode, Move ttm, Depth d, SearchStack* ss = NULL); + 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; @@ -76,15 +77,13 @@ private: void score_captures(); void score_noncaptures(); void score_evasions(); - void score_qcaptures(); 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;