Belofte
version 2.1.5
A promising chess program using the UCI or Winboard interface
|
implementation of user interface More...
Public Member Functions | |
engineInterface (std::string const &n) | |
Common commands to all modes. More... | |
virtual | ~engineInterface () |
engineInterface (engineInterface const &)=delete | |
engineInterface (engineInterface &&)=delete | |
engineInterface & | operator= (engineInterface const &)=delete |
engineInterface & | operator= (engineInterface &&)=delete |
operator std::string () const | |
void | execute (std::string const &command, std::string const ¶ms) |
virtual void | setRunning (bool const r) |
virtual bool | isRunning () const |
virtual void | sendPrompt () |
virtual void | sendResponse (std::string const &response) |
virtual void | sendInvalidMove (std::string const &info, std::string const &reason UNUSED) |
virtual void | sendError (std::string const &error, std::string const &description) |
virtual void | sendHelp (std::string const &args) |
Send help on command or all commands. More... | |
virtual void | sendDebug (int const l, std::string const &info) |
virtual void | sendMove (bBoard const &b, bMove const &m) |
virtual void | sendResult (bBoard &b, gameResult_t rs) const |
virtual void | sendInfoDepth (depth_t depth UNUSED, depth_t seldepth UNUSED, int64_t nodes UNUSED, int nps UNUSED) |
virtual void | sendInfoScore (long long timems UNUSED, bBoard const &b UNUSED, bScore const cp UNUSED) |
virtual void | sendInfoSearching (bBoard const &b UNUSED, depth_t const nLogDepth UNUSED, depth_t const nMaxDepth UNUSED, std::string const &comment UNUSED, bScore const sc UNUSED, int64_t const timems UNUSED, int64_t const nodes UNUSED) const |
virtual void | sendInfoCurrMove (bBoard const &b UNUSED, depth_t const nLogDepth UNUSED, depth_t const nMaxDepth UNUSED, std::string const &comment UNUSED, bMove const &m UNUSED, movenum_t const moveid UNUSED, int64_t const nodes UNUSED) const |
Static Public Attributes | |
static engineCommands_t | m_engineCommands = decltype(engineInterface::m_engineCommands){} |
Protected Member Functions | |
void | attachCommand (belofte::stringList const &sCommands, bool const published=true) |
|
explicit |
Common commands to all modes.
Definition at line 308 of file belofte.cpp.
|
virtual |
Definition at line 347 of file belofte.cpp.
|
delete |
|
delete |
|
delete |
|
delete |
void engineInterface::execute | ( | std::string const & | command, |
std::string const & | params | ||
) |
Definition at line 147 of file belofte.cpp.
Referenced by main(), bGame::playUIsuppliedMove(), and commandReader::runner().
|
inlinevirtual |
Definition at line 183 of file belofte.h.
Referenced by sendResult().
|
inlinevirtual |
|
virtual |
Reimplemented in XboardMode, and UCIMode.
Definition at line 253 of file usercmd.cpp.
Referenced by commandReader::runner().
|
virtual |
|
inlinevirtual |
Definition at line 188 of file belofte.h.
Referenced by bGame::playUIsuppliedMove().
|
virtual |
Definition at line 134 of file usercmd.cpp.
Referenced by bel_debug::execute(), engineUserCommand::execute(), execute(), bSearchAlgorithm::SearchBestMove(), sendInvalidMove(), and bGame::WaitForSearchEnd().
|
virtual |
Send help on command or all commands.
args | –all means all commands, "" or a single command TODO: implement hidden command flag |
Definition at line 91 of file usercmd.cpp.
Referenced by cmd_help::execute().
|
virtual |
Reimplemented in UCIMode.
Definition at line 142 of file usercmd.cpp.
Referenced by bSearchAlgorithm::dumpMoveList(), and bSearchAlgorithm::SearchBestMove().
Reimplemented in UCIMode.
Definition at line 258 of file usercmd.cpp.
Referenced by bGame::WaitForSearchEnd().
|
virtual |
Definition at line 263 of file usercmd.cpp.
Referenced by bGame::playUIsuppliedMove(), and bGame::WaitForSearchEnd().
|
inlinevirtual |
Definition at line 200 of file belofte.h.
Referenced by bSearchAlgorithm::sendInfoScore().
|
inlinevirtual |
Definition at line 202 of file belofte.h.
Referenced by bSearchAlgorithm::sendInfoSearching().
|
inlinevirtual |
Definition at line 205 of file belofte.h.
Referenced by bSearchAlgorithm::handleInfoCurrMove().
|
protected |
Definition at line 177 of file belofte.cpp.
Referenced by engineInterface(), UCIMode::UCIMode(), and XboardMode::XboardMode().
|
static |
Definition at line 222 of file belofte.h.
Referenced by execute(), sendHelp(), and ~engineInterface().