Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
|
#include <level.h>
Public Member Functions | |
bLevel () | |
~bLevel () | |
bLevel (bLevel const &)=default | |
bLevel & | operator= (bLevel const &)=default |
bLevel (bLevel &&)=delete | |
bLevel & | operator= (bLevel &&)=delete |
constexpr bool | hasLevelChanged () const |
void | flagLevelChanged () |
void | clearLevelChanged () |
new level or new game | |
void | setGameTime (int const msPerGame) |
void | setGameTime (int const msPerGame, int const msIncrementPerMove) |
void | setMoveTime (int const msPerMove) |
void | setMoveTime (int const msPerGame, int const nMoves) |
void | setMoveTime (int const msPerGame, int const nMoves, int const msIncrementPerMove) |
void | setInfinite () |
void | setMateSearch (depth_t const d) |
void | setMoreTimeRequired () |
increase gradually the allowed time for move, first move to max time for move, then move to abort time | |
void | setMoves (std::string movelist) |
void | setNodes (int64_t const n) |
void | setPondering () |
void | clearPondering () |
constexpr bool | isPondering () const |
constexpr LevelType | getType () const |
void | setSearchDepth (depth_t const d) |
constexpr depth_t | getSearchDepth () const |
void | setQSDepth (depth_t const d) |
constexpr depth_t | getQSDepth () const |
void | setMaxDepth (depth_t const d) |
constexpr depth_t | getMaxDepth () const |
void | setDepthCommand (depth_t const d) |
bool | searchDepthReached (depth_t const d) const |
bool | qsDepthReached (depth_t const d) const |
bool | stoppingSearch (long const nTimeElapsed) const |
Stop search required ? | |
bool | stillTimeLeft (depth_t const d, long const nTimeElapsed) const |
Do we still have time to do another iteration ? | |
void | setRemainingTime (int const msPerGame) |
xboard issues time command to update available time | |
void | setMovePlayed () |
void | undoMovePlayed () |
used for recalibrating time in case for undo move in xboard moves per period | |
operator std::string () const | |
|
inline |
Definition at line 50 of file level.h.
Referenced by bLevel(), bLevel(), operator=(), and operator=().
|
default |
|
delete |
|
inlineconstexpr |
Definition at line 66 of file level.h.
Referenced by setGameTime(), setGameTime(), setMoveTime(), setMoveTime(), and setMoveTime().
|
inline |
Definition at line 68 of file level.h.
Referenced by bLevel(), cmd_level::execute(), and bGame::newGame().
|
inline |
new level or new game
Definition at line 70 of file level.h.
Referenced by setGameTime(), setGameTime(), setMoveTime(), setMoveTime(), and setMoveTime().
void bLevel::setGameTime | ( | int const | msPerGame | ) |
Definition at line 23 of file level.cpp.
Referenced by cmd_go::execute(), and cmd_level::execute().
void bLevel::setGameTime | ( | int const | msPerGame, |
int const | msIncrementPerMove ) |
void bLevel::setMoveTime | ( | int const | msPerMove | ) |
Definition at line 59 of file level.cpp.
Referenced by cmd_go::execute(), cmd_level::execute(), and cmd_st::execute().
void bLevel::setMoveTime | ( | int const | msPerGame, |
int const | nMoves ) |
void bLevel::setMoveTime | ( | int const | msPerGame, |
int const | nMoves, | ||
int const | msIncrementPerMove ) |
void bLevel::setInfinite | ( | ) |
Definition at line 12 of file level.cpp.
Referenced by cmd_go::execute().
void bLevel::setMateSearch | ( | depth_t const | d | ) |
Definition at line 119 of file level.cpp.
Referenced by cmd_fd::execute(), and cmd_go::execute().
void bLevel::setMoreTimeRequired | ( | ) |
void bLevel::setMoves | ( | std::string | movelist | ) |
|
inline |
Definition at line 85 of file level.h.
Referenced by cmd_go::execute().
|
inline |
Definition at line 87 of file level.h.
Referenced by cmd_go::execute(), and cmd_hard::execute().
|
inline |
Definition at line 89 of file level.h.
Referenced by cmd_easy::execute().
void bLevel::setSearchDepth | ( | depth_t const | d | ) |
Definition at line 232 of file level.cpp.
Referenced by setDepthCommand(), setGameTime(), setGameTime(), setInfinite(), setMateSearch(), setMoveTime(), setMoveTime(), and setMoveTime().
|
inlineconstexpr |
Definition at line 98 of file level.h.
Referenced by SearchPerft::CalcBestMove(), operator std::string(), and searchDepthReached().
|
inline |
Definition at line 100 of file level.h.
Referenced by setInfinite(), and setMateSearch().
|
inlineconstexpr |
Definition at line 102 of file level.h.
Referenced by qsDepthReached().
|
inline |
Definition at line 104 of file level.h.
Referenced by setDepthCommand(), setGameTime(), setGameTime(), setInfinite(), setMateSearch(), setMoveTime(), setMoveTime(), and setMoveTime().
|
inlineconstexpr |
Definition at line 106 of file level.h.
Referenced by operator std::string().
void bLevel::setDepthCommand | ( | depth_t const | d | ) |
Definition at line 226 of file level.cpp.
Referenced by cmd_go::execute(), cmd_sd::execute(), main(), and bConfigurableGame::setAlgorithm().
bool bLevel::searchDepthReached | ( | depth_t const | d | ) | const |
bool bLevel::qsDepthReached | ( | depth_t const | d | ) | const |
bool bLevel::stoppingSearch | ( | long const | nTimeElapsed | ) | const |
bool bLevel::stillTimeLeft | ( | depth_t const | d, |
long const | nTimeElapsed ) const |
void bLevel::setRemainingTime | ( | int const | msPerGame | ) |
xboard issues time command to update available time
Definition at line 133 of file level.cpp.
Referenced by cmd_time::execute().
void bLevel::setMovePlayed | ( | ) |
Definition at line 143 of file level.cpp.
Referenced by cmd_usermove::execute().
void bLevel::undoMovePlayed | ( | ) |