UCILoader 1.1.2
Small C++ library that allows user to connect to a chess engines via UCI protocol.
Loading...
Searching...
No Matches
UCILoader::SearchResult< Move > Struct Template Reference

Container for the result of a chess engine search operation. More...

#include <EngineConnection.h>

Public Attributes

Move * bestMove
 The best move chosen by the engine for the given position.
 
Move * ponderMove
 [Optional] Move the engine wishes to ponder on, or nullptr if not provided by the engine
 

Detailed Description

template<class Move>
struct UCILoader::SearchResult< Move >

Container for the result of a chess engine search operation.

Template Parameters
MoveThe move type used by the chess engine

Holds the best move and optional ponder move returned by the engine after a search completes. The bestMove field is guaranteed to be non-null only when the search status is ResultReady. The ponderMove field is optional and will be nullptr if the engine did not provide one.

Warning
Memory Management: The parent SearchConnection object is responsible for freeing the memory of pointers in this structure. Users should NOT manually delete members of this structure unless they constructed the instance manually.

The documentation for this struct was generated from the following file: