|
Belofte version 2.2.0
A promising chess program using the UCI or Winboard interface
|
game representation, singleton More...
#include <game.h>
Inheritance diagram for bGame:
Collaboration diagram for bGame:Public Member Functions | |
| bGame () | |
| ~bGame () override | |
| bGame (bGame const &)=delete | |
| bGame (bGame &&)=delete | |
| bGame & | operator= (bGame const &)=delete |
| bGame & | operator= (bGame &&)=delete |
| void | newGame () |
| void | setFEN (std::string const &fenstr) |
| void | setFENInitialPos () |
| bool | playGameMoveSeries (std::string const &coordmoves) |
| all moves in a single string | |
| bool | playPGNMoves (std::string const &sPGNMoveList) |
| apply move, it will change the current board by updating the move played it will also add the new board to the game positions list | |
| void | revertGameMove (std::string const &reason) |
| required for Winboard protocol, not supported in UCI (except debug) | |
| void | setResult (gameResult_t gr) |
| gameResult_t | getResult () const |
| bool | isExpecting (std::string const &s) const |
| void | setExpecting (std::string const &s) |
| std::string const & | getExpecting () const |
| bBoard & | getCurrentPosition () |
| void | setLevel (bLevel const &l) |
| bLevel & | getLevel () |
| positions_t & | getPositions () |
| void | setPlayerName (std::string const &n) |
| void | DoSearch () |
| Start search thread and exit in case of batch mode, will wait until end of search. | |
| void | AbortSearch () |
| void | WaitForSearchEnd () |
| Called in separate thread, sure to terminate normally. | |
| bScore | EvalForPlayer (bBoard const &b, gameResult_t gr) |
| int64_t | DoPerftCommand (depth_t const d) |
| do perft search using SearchPerft algorithm at depth | |
| int64_t | DoPerft (bSearchAlgorithm &sa, depth_t const d) |
| do perft search at depth in case of Perft algorithm, temporarily set evaltype to None | |
| bMove | getEpdMoveInPosition (bFen const &fen) |
| do actual epd position test | |
| void | setStandardPgn (bool const l) |
| constexpr bool | isStandardPgn () const |
| void | setSearching (bool const l) |
| constexpr bool | isSearching () const |
| operator std::string () const | |
Public Member Functions inherited from bConfigurableGame | |
| bConfigurableGame () | |
| virtual | ~bConfigurableGame () |
| bConfigurableGame (bConfigurableGame const &)=delete | |
| bConfigurableGame & | operator= (bConfigurableGame const &)=delete |
| bConfigurableGame (bConfigurableGame &&)=delete | |
| bConfigurableGame & | operator= (bConfigurableGame &&)=delete |
| void | setAlgorithm (std::string const &alg) |
| bSearchAlgorithm * | getAlgorithm () const |
| void | setEval (std::string const &e) |
| bPositionEvaluation * | getEval () const |
Static Public Member Functions | |
| static std::string | getResult (gameResult_t gr) |
| bGame::bGame | ( | ) |
Definition at line 15 of file game.cpp.
Referenced by bGame(), bGame(), operator=(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
delete |
Here is the call graph for this function:
|
delete |
Here is the call graph for this function:| void bGame::newGame | ( | ) |
Definition at line 24 of file game.cpp.
Referenced by bGame(), cmd_bench::execute(), cmd_load::execute(), cmd_new::execute(), cmd_ucinewgame::execute(), getEpdMoveInPosition(), main(), bEpd::parsePerftPosition(), and bel_debug::run_bench().
Here is the call graph for this function:
Here is the caller graph for this function:| void bGame::setFEN | ( | std::string const & | fenstr | ) |
Definition at line 54 of file game.cpp.
Referenced by cmd_position::execute(), cmd_setboard::execute(), getEpdMoveInPosition(), bEpd::parsePerftPosition(), and bel_debug::run_bench().
Here is the caller graph for this function:| void bGame::setFENInitialPos | ( | ) |
Definition at line 46 of file game.cpp.
Referenced by cmd_bench::execute(), cmd_load::execute(), cmd_new::execute(), cmd_position::execute(), cmd_ucinewgame::execute(), main(), and bel_debug::run_bench().
Here is the caller graph for this function:| bool bGame::playGameMoveSeries | ( | std::string const & | coordmoves | ) |
| bool bGame::playPGNMoves | ( | std::string const & | sPGNMoveList | ) |
apply move, it will change the current board by updating the move played it will also add the new board to the game positions list
Definition at line 248 of file game.cpp.
Referenced by cmd_load::execute().
Here is the call graph for this function:
Here is the caller graph for this function:| void bGame::revertGameMove | ( | std::string const & | reason | ) |
required for Winboard protocol, not supported in UCI (except debug)
Definition at line 286 of file game.cpp.
Referenced by cmd_again::execute(), cmd_remove::execute(), and cmd_undo::execute().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 179 of file game.cpp.
Referenced by engineInterface::sendResult(), and XboardMode::sendResult().
Here is the call graph for this function:
Here is the caller graph for this function:| void bGame::setResult | ( | gameResult_t | gr | ) |
Definition at line 187 of file game.cpp.
Referenced by revertGameMove().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 41 of file game.h.
Referenced by newGame(), setResult(), and WaitForSearchEnd().
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 47 of file game.h.
Referenced by cmd_expect::execute(), and cmd_perft::execute().
Here is the caller graph for this function:
|
inline |
Definition at line 54 of file game.h.
Referenced by DoPerft(), DoSearch(), bel_debug::execute(), cmd_bd::execute(), cmd_eval::execute(), cmd_usermove::execute(), getEpdMoveInPosition(), bEpd::parseEpdPosition(), bEpd::parseSTSPosition(), playPGNMoves(), revertGameMove(), setPlayerName(), and WaitForSearchEnd().
Here is the caller graph for this function:
|
inline |
Definition at line 57 of file game.h.
Referenced by cmd_go::execute().
Here is the caller graph for this function:
|
inline |
Definition at line 59 of file game.h.
Referenced by cmd_easy::execute(), cmd_fd::execute(), cmd_hard::execute(), cmd_level::execute(), cmd_sd::execute(), cmd_st::execute(), cmd_time::execute(), cmd_usermove::execute(), bel_debug::info(), main(), newGame(), and bConfigurableGame::setAlgorithm().
Here is the caller graph for this function:
|
inline |
| void bGame::setPlayerName | ( | std::string const & | n | ) |
Definition at line 62 of file game.cpp.
Referenced by cmd_name::execute(), and cmd_UCI_Opponent::execute().
Here is the call graph for this function:
Here is the caller graph for this function:| void bGame::DoSearch | ( | ) |
Start search thread and exit in case of batch mode, will wait until end of search.
in case of batch mode, do not start separate thread for searching
Definition at line 75 of file game.cpp.
Referenced by cmd_go::execute().
Here is the call graph for this function:
Here is the caller graph for this function:| void bGame::AbortSearch | ( | ) |
Definition at line 98 of file game.cpp.
Referenced by cmd_questionmark::execute(), and cmd_stop::execute().
Here is the call graph for this function:
Here is the caller graph for this function:| void bGame::WaitForSearchEnd | ( | ) |
Called in separate thread, sure to terminate normally.
Definition at line 106 of file game.cpp.
Referenced by DoSearch().
Here is the call graph for this function:
Here is the caller graph for this function:| bScore bGame::EvalForPlayer | ( | bBoard const & | b, |
| gameResult_t | gr ) |
Definition at line 174 of file game.cpp.
Referenced by cmd_eval::execute().
Here is the call graph for this function:
Here is the caller graph for this function:| int64_t bGame::DoPerftCommand | ( | depth_t const | d | ) |
do perft search using SearchPerft algorithm at depth
Definition at line 129 of file game.cpp.
Referenced by bEpd::parsePerftPosition().
Here is the call graph for this function:
Here is the caller graph for this function:| int64_t bGame::DoPerft | ( | bSearchAlgorithm & | sa, |
| depth_t const | d ) |
do perft search at depth in case of Perft algorithm, temporarily set evaltype to None
Definition at line 139 of file game.cpp.
Referenced by DoPerftCommand(), cmd_perft::execute(), and bel_debug::run_bench().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 76 of file game.h.
Referenced by cmd_export::execute(), cmd_game::execute(), and cmd_save::execute().
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 78 of file game.h.
Referenced by operator std::string().
Here is the caller graph for this function:
|
inline |
Definition at line 80 of file game.h.
Referenced by bSearchAlgorithm::StartSearch(), and bSearchAlgorithm::StopSearch().
Here is the caller graph for this function: