#include "depth.h"
#include "history.h"
-#include "lock.h"
#include "position.h"
public:
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_evasions() const;
- Bitboard discovered_check_candidates() const;
private:
void score_captures();
void score_noncaptures();
- void score_evasions();
+ void score_evasions_or_checks();
void go_next_phase();
const Position& pos;
const History& H;
MoveStack ttMoves[2], killers[2];
- bool finished;
int phase;
const uint8_t* phasePtr;
MoveStack *curMove, *lastMove, *lastBadCapture;
- Bitboard dc, pinned;
+ Bitboard pinned;
MoveStack moves[256], badCaptures[64];
};
return int(lastMove - moves);
}
-/// MovePicker::discovered_check_candidates() returns a bitboard containing
-/// all pieces which can possibly give discovered check. This bitboard is
-/// computed by the constructor function.
-
-inline Bitboard MovePicker::discovered_check_candidates() const {
- return dc;
-}
-
#endif // !defined(MOVEPICK_H_INCLUDED)