|
Belofte version 2.1.9
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 | playGameMove (bCoordMove const &coordmove) |
| 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 | |
| bool | playGameMoveSeries (std::string const &coordmoves) |
| all moves in a single string | |
| void | revertGameMove (std::string const &reason) |
| required for Winboard protocol, not supported in UCI (except debug) | |
| std::string | getResult (gameResult_t gr) const |
| 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) |
| 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 | |
| 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 |
| 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_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 50 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 42 of file game.cpp.
Referenced by cmd_bench::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::playGameMove | ( | bCoordMove const & | coordmove | ) |
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 201 of file game.cpp.
Referenced by WaitForSearchEnd().
Here is the call graph for this function:
Here is the caller graph for this function:| bool bGame::playGameMoveSeries | ( | std::string const & | coordmoves | ) |
| void bGame::revertGameMove | ( | std::string const & | reason | ) |
required for Winboard protocol, not supported in UCI (except debug)
Definition at line 237 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:| std::string bGame::getResult | ( | gameResult_t | gr | ) | const |
Definition at line 171 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 179 of file game.cpp.
Referenced by playGameMove(), and 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(), playGameMove(), 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 58 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 71 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 90 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 98 of file game.cpp.
Referenced by DoSearch().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 166 of file game.cpp.
Referenced by cmd_eval::execute(), and playGameMove().
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 121 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 131 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: