- All Superinterfaces:
UCICommand
- All Known Implementing Classes:
RspBestMove,RspId,RspInfo,RspOption,RspReadyOk,RspUciOk
A UCIResponse is categorized by its type, which indicates the nature of the response. Implementations of this interface must define the specific behavior and representation of each response type.
Response types include: - ID: Provides identification details such as the engine name or author. - UCIOK: Indicates the engine has successfully recognized the UCI command. - READYOK: Indicates the engine is ready to process further commands. - INFO: Provides informational updates about the engine's analysis. - BESTMOVE: Indicates the best move calculated by the engine, and optionally, a ponder move.
Each response can be executed on a UCIGui instance to process or handle the response appropriately. The concrete implementation of this interface determines the specific execution logic.
- Author:
- Mauricio Coria
-
Method Summary
Modifier and TypeMethodDescriptionstatic RspBestMovestatic RspBestMovestatic RspOptioncreateCheckOption(String name, boolean defaultValue) static RspOptioncreateStringOption(String name, String defaultValue) voidExecutes the response using the provided UCIGui instance.static RspIdstatic RspIdstatic RspInfostatic RspReadyOkreadyok()static RspUciOkuciok()
-
Method Details
-
execute
Executes the response using the provided UCIGui instance.- Parameters:
executor- The UCIGui instance that will execute the response.
-
uciok
-
readyok
-
idName
-
idAuthor
-
bestMove
-
bestMove
-
createStringOption
-
createCheckOption
-
info
-