42 std::string izing = std::string(b.
minimizing() > 0 ?
"White" :
"Black") +
" to move";
45 if (
getLevel()->searchDepthReached(nDepth)) {
61 for (
movenum_t moveid = 1; moveid <= n_moves; moveid++) {
70 if (chldscore > bestscore) {
72 bestscore = chldscore.getScore();
This is the main include file, needs to be included before any other include.
~SearchBruteForce() override
bScore CalcBestMove(bBoard &b) override
~SearchIterativeBF() override
void setVariation(bBoard const &chldbrd)
bMoveList & getMoveListRef()
return reference to movelist
bScore minimizing() const
movenum_t setScoreOfMove(movenum_t const moveid, bScore const score)
Store score of move.
movenum_t generateMoves(bBoard const &b)
generate moves if not yet generated
void sendInfoCurrMove(bBoard const &b, depth_t const nDepth, movenum_t const moveid) const
bScore attenuateScore(bScore const sc) const
converge score towards zero in order to force immediate best move first
bScore RetrieveBoardEvaluation(bBoard &b) const
Cache score of board.
void CheckIfAbortingSearch() const
constexpr bScore SCORE_INFINITE
#define DEBUG_returnInfoSearching(b, depth, msg, sc)
#define DEBUG_sendInfoSearching(b, depth, msg, sc)