X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmovepick.h;h=27adb101552160c5fe0613a691f8dce665aff43f;hb=c9d364f9caf5bdbd61d1fcbe85142d4ebaafad7c;hp=ced0a051654685cbe48fb2c99662d7604de4d38f;hpb=9e4befe3f1ea324bece88aee2e97b38659411c52;p=stockfish diff --git a/src/movepick.h b/src/movepick.h index ced0a051..27adb101 100644 --- a/src/movepick.h +++ b/src/movepick.h @@ -38,7 +38,6 @@ struct SearchStack; enum MovegenPhase { - PH_NULL_MOVE, // Null move PH_TT_MOVES, // Transposition table move and mate killer PH_GOOD_CAPTURES, // Queen promotions and captures with SEE values >= 0 PH_KILLERS, // Killer moves from the current ply @@ -65,7 +64,7 @@ class MovePicker { MovePicker& operator=(const MovePicker&); // silence a warning under MSVC public: - MovePicker(const Position& p, Move ttm, Depth d, const History& h, SearchStack* ss = NULL, bool useNullMove = false); + 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; @@ -79,12 +78,12 @@ private: const Position& pos; const History& H; - Move ttMoves[2], killers[2]; - const MovegenPhaseT* phasePtr; - int phase, movesPicked, numOfBadCaptures; + MoveStack ttMoves[2], killers[2]; bool finished; + int phase; + const MovegenPhaseT* phasePtr; + MoveStack *curMove, *lastMove, *lastBadCapture; Bitboard dc, pinned; - MoveStack *curMove, *lastMove; MoveStack moves[256], badCaptures[64]; };