mirror of
https://github.com/chesskit-app/chesskit-engine.git
synced 2026-05-19 15:50:35 +00:00
33 lines
637 B
C++
33 lines
637 B
C++
//
|
|
// engine.h
|
|
// ChessKitEngine
|
|
//
|
|
|
|
#ifndef engine_h
|
|
#define engine_h
|
|
|
|
#include <string>
|
|
|
|
/// Abstract `Engine` class which encapsulates
|
|
/// engine initialization, deinitialization,
|
|
/// and one-way UCI communication.
|
|
///
|
|
/// In order to receive UCI responses, monitor
|
|
/// `stdout` output.
|
|
class Engine {
|
|
public:
|
|
/// Initializes the engine.
|
|
///
|
|
/// Any required initialization and setup should
|
|
/// be performed here.
|
|
virtual void initialize() {};
|
|
|
|
/// Deinitializes the engine.
|
|
///
|
|
/// Any required deinitialization and cleanup should
|
|
/// be performed here
|
|
virtual void deinitialize() {};
|
|
};
|
|
|
|
#endif /* engine_h */
|