////
#include "depth.h"
+#include "history.h"
#include "lock.h"
#include "position.h"
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
PH_STOP
};
- MovePicker(const Position& p, bool pvnode, Move ttm, const SearchStack& ss, Depth d);
+ 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;
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;