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
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;
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;
- Bitboard dc, pinned;
+ int numOfBadCaptures, phase;
+ const MovegenPhaseT* phasePtr;
MoveStack *curMove, *lastMove;
+ Bitboard dc, pinned;
MoveStack moves[256], badCaptures[64];
};