43 std::string izing = std::string(b.
minimizing() > 0 ?
"White" :
"Black") +
" to move";
47 if (
getLevel()->depthReached(nDepth)) {
61 for (
movenum_t moveid = 1; moveid <= n_moves; moveid++) {
67 if (chldscore > bestscore) {
69 bestscore = chldscore.getScore();
This is the main include file, needs to be included before any other include.
uint_fast16_t movenum_t
moveflags (high order word) & basicmove (low order word)
int_fast16_t bScore
used to return id of move in movelist
bBestMoveInfo CalcBestMove(bBoard &b) override
~SearchBruteForce() override
~SearchIterativeBF() override
movenum_t generateMoves()
generate moves if not yet generated
void setVariation(bBoard const &chldbrd)
bMoveList & getMoves()
return moves in position, initialise structure if needed
bScore minimizing() const
movenum_t generateAtLeastOneMove()
see if at least one move can be played e.g.
movenum_t updateScoreOfBestMove(movenum_t const moveid, bScore const score)
Store score of move.
move_t getMoveT(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 handleInfoCurrMove(bBoard const &b, bMoveList const &ml, depth_t const &nDepth, movenum_t const moveid) const
bScore sendInfoSearching(bBoard const &b, depth_t const nDepth, std::string const &c, bScore const sc) const
constexpr bScore SCORE_INFINITE