stellarUCI Chess engine written in C++20 |
git clone git://git.dimitrijedobrota.com/stellar.git |
Log | Files | Refs | README | LICENSE |
match.hpp (653B)
0 #ifndef STELLAR_ARENA_MATCH_H 1 #define STELLAR_ARENA_MATCH_H 2 3 #include "engine.hpp" 4 #include "game.hpp" 5 6 class Match { 7 public: 8 struct Settings { 9 uint64_t time = 30000, inc = 0, movetime = 0; 10 uint8_t depth = 0, togo = 0; 11 }; 12 13 Match(Engine &white, Engine &black); 14 ~Match(); 15 16 Game play(Settings swhite, Settings sblack, const std::string &fen); 17 18 private: 19 static std::string get_go(Settings &swhite, Settings &sblack, Color side); 20 static Move parse_move(const MoveList &list, const std::string &move_string); 21 22 std::array<Engine *, 2> engines; 23 24 static uint16_t id_t; 25 uint16_t id = id_t++; 26 }; 27 28 #endif