34using std::string_view;
65 [[nodiscard]]
virtual auto get_name() const -> std::
string = 0;
68 [[nodiscard]] virtual auto
get_author() const -> string_view = 0;
82 [[nodiscard]]
virtual auto is_searching() const noexcept ->
bool = 0;
92 virtual
void new_game([[maybe_unused]]
bool firstCall) { }
113 virtual void set_debug([[maybe_unused]]
bool shouldDebug) { }
128 [[maybe_unused]] string_view command,
129 [[maybe_unused]] string_view options) { }
145 void respond_to_uci();
147 void handle_setpos(string_view arguments);
148 void handle_setoption(string_view arguments);
150 bool shouldExit {
false };
152 bool initialized {
false };
optional< RegisterNowOptions > RegisterOptions
virtual auto get_author() const -> string_view=0
virtual void handle_registration(const RegisterOptions &opts)
virtual void ponder_hit()
virtual void handle_custom_command(string_view command, string_view options)
virtual auto get_name() const -> std::string=0
virtual auto get_options() -> std::span< Option * >
virtual void set_position(const Position &pos)
void handle_command(string_view command)
virtual void go(const GoCommandOptions &opts)=0
virtual auto is_searching() const noexcept -> bool=0
virtual void new_game(bool firstCall)
EngineBase & operator=(EngineBase &&)=default
EngineBase & operator=(const EngineBase &)=default
virtual void abort_search()
virtual void set_debug(bool shouldDebug)
EngineBase(const EngineBase &)=default
EngineBase(EngineBase &&)=default