stellarUCI Chess engine written in C++20 |
git clone git://git.dimitrijedobrota.com/stellar.git |
Log | Files | Refs | README | LICENSE |
match.hpp (658B)
0 #ifndef STELLAR_ARENA_MATCH_H
1 #define STELLAR_ARENA_MATCH_H
3 #include "engine.hpp"
4 #include "game.hpp"
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 };
13 Match(Engine &white, Engine &black);
14 ~Match();
16 Game play(Settings swhite, Settings sblack, const std::string fen);
18 private:
19 static std::string get_go(Settings &swhite, Settings &sblack, color::Color side);
20 static Move parse_move(const MoveList list, const std::string &move_string);
22 std::array<Engine *, 2> engines;
24 static uint16_t id_t;
25 uint16_t id = id_t++;
26 };
28 #endif