/* * Copyright (c) 2020, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include class ChessEngine : public Chess::UCI::Endpoint { C_OBJECT(ChessEngine) public: virtual ~ChessEngine() override = default; virtual void handle_uci() override; virtual void handle_position(Chess::UCI::PositionCommand const&) override; virtual void handle_go(Chess::UCI::GoCommand const&) override; private: ChessEngine() = default; ChessEngine(NonnullRefPtr in, NonnullRefPtr out) : Endpoint(in, out) { } Chess::Board m_board; };