53 if (
getLevel()->searchDepthReached(nDepth)) {
81 if (minimizing == 1) {
90 b.bBasicBoard::unApplyMove(m, bi);
103 b.bBasicBoard::unApplyMove(m, bi);
union boardInfo boardInfo_t
This is the main include file, needs to be included before any other include.
bScore CalcBestMove(bBoard &b, bMoveList &ml) override
Root search for algorithm.
constexpr bScore minimizing() const
movenum_t generateMoves(bBasicBoard const &b)
generate moves if not yet generated
void setScoreOfMoveUnsorted(movenum_t const moveid, bScore const score)
Store score of move and update best move.
constexpr bScore getBestMoveScore() const
void setMinScoreOfMoveUnsorted(movenum_t const moveid, bScore const score)
Store score of move and update best move.
void setBestMoveScore(bScore const score)
static bScore resultToScoreFlag(gameResult_t const gr)
Class static function convert all draw scores to SCORE_THEORETIC_DRAW.
static gameResult_t gameEndedResult(bBoard const &b)
Class static function See if board is in finite state, meaning game is ended.
static bool isDrawResult(gameResult_t const gr)
void adjustMaxSearchedDepth(depth_t const nDepth)
void sendInfoCurrMove(bBoard const &b, depth_t const nCurDepth, bMove const &m, movenum_t const moveid) const
bScore RetrieveBoardEvaluationForWhite(bBoard &b, gameResult_t const gr, bool const bRecalcFirst) const
Get score of board, eventually from cache, from whites view.
constexpr bool isNoBench() const
constexpr bool isBench() const
void CheckIfAbortingSearch() const
enum gameResult gameResult_t
constexpr bScore SCORE_THEORETIC_DRAW
constexpr bScore SCORE_INFINITE
#define DEBUG_sendInfoSearchingNS(b, depth, msg)
#define DEBUG_sendInfoSearching(b, depth, msg, sc)