|
io-chess
UCI chess engine
|
Abstract interface for search algorithms. More...
#include <ISearch.h>

Public Member Functions | |
| virtual | ~ISearch ()=default |
| virtual Move | startSearch (Board &root, const SearchParams ¶ms)=0 |
| Starts the search process on the given root board. | |
| virtual void | stop ()=0 |
| Asynchronously signals the search to stop immediately. | |
| virtual bool | isSearching () const =0 |
| Checks if the search algorithm is currently running. | |
| virtual void | setInfoCallback (InfoCallback callback)=0 |
| Sets the callback function for periodic information updates. | |
| virtual uint64_t | getNodes () const =0 |
| Retrieves the total number of nodes evaluated by the search algorithm. | |
Abstract interface for search algorithms.
This interface defines the standard lifecycle of a search algorithm, allowing the engine to switch between implementations (e.g., Negamax vs. MCTS).
|
virtualdefault |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Starts the search process on the given root board.
This is a blocking call that will execute the search algorithm until the stopping conditions in params (or stop()) are met.
| root | The starting board position. |
| params | The time and depth constraints for the search. |
|
pure virtual |