Belofte version 2.1.8
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 |
operator std::string () const | |
void | flagLevelChanged () |
void | setGameTime (int const msPerGame) |
new level or new game | |
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 | setMoves (std::string movelist) |
void | setNodes (int64_t n) |
void | setPondering () |
void | clearPondering () |
bool | isPondering () const |
LevelType | getType () const |
void | setSearchDepth (depth_t const d) |
depth_t | getSearchDepth () const |
void | setQSDepth (depth_t const d) |
depth_t | getQSDepth () const |
void | setMaxDepth (depth_t const d) |
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 | |
bLevel::bLevel | ( | ) |
|
default |
|
delete |
void bLevel::flagLevelChanged | ( | ) |
Definition at line 27 of file level.cpp.
Referenced by bLevel(), cmd_level::execute(), and bGame::newGame().
void bLevel::setGameTime | ( | int const | msPerGame | ) |
new level or new game
Definition at line 43 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 81 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 32 of file level.cpp.
Referenced by cmd_go::execute().
void bLevel::setMateSearch | ( | depth_t const | d | ) |
Definition at line 144 of file level.cpp.
Referenced by cmd_go::execute(), and cmd_fd::execute().
void bLevel::setMoves | ( | std::string | movelist | ) |
void bLevel::setNodes | ( | int64_t | n | ) |
Definition at line 269 of file level.cpp.
Referenced by cmd_go::execute().
void bLevel::setPondering | ( | ) |
Definition at line 289 of file level.cpp.
Referenced by cmd_go::execute(), and cmd_hard::execute().
void bLevel::clearPondering | ( | ) |
Definition at line 294 of file level.cpp.
Referenced by cmd_easy::execute().
void bLevel::setDepthCommand | ( | depth_t const | d | ) |
Definition at line 250 of file level.cpp.
Referenced by bGame::DoPerft(), cmd_go::execute(), cmd_sd::execute(), and main().
bool bLevel::stoppingSearch | ( | long const | nTimeElapsed | ) | const |
Stop search required ?
nTimeElapsed | time elapsed until now |
stopping
aborting
avoid getting flagged
Definition at line 321 of file level.cpp.
Referenced by bSearchAlgorithm::CheckIfAbortingSearch().
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 157 of file level.cpp.
Referenced by cmd_time::execute().
void bLevel::setMovePlayed | ( | ) |
Definition at line 167 of file level.cpp.
Referenced by cmd_usermove::execute().