31 for (
movenum_t moveid = 1; moveid <= n_moves; moveid++) {
35 bScore chldscore = -Quiescence(chldbrd, -sc, 2);
52 std::string izing = std::string(b.
minimizing() > 0 ?
"White" :
"Black") +
" to move";
57 +
") -- early cut off", boardscore);
72 for (
movenum_t moveid = 1; moveid <= n_moves; moveid++) {
73 if (ml[moveid].isNonSilent() || ml[moveid].isCheck()) {
77 bScore chldscore = -Quiescence(chldbrd, -nValueAtNullMove, nDepth + 1);
79 if (chldscore > bestscore) {
81 bestscore = chldscore;
86 +
") -- cut-off", chldscore);
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
~SearchEvalPosOnly() override
bBestMoveInfo CalcBestMove(bBoard &b) 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 generateAtLeastOneQSMove()
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 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
bScore realScore(bScore const sc)
std::string to_string(long value)
std::to_string not compatible on Mac OS (Apple LLVM version 5.0) provide generic utility function