Add assignment

This commit is contained in:
Job Noorman
2022-10-27 12:29:19 +02:00
commit 9f05ab03c1
49 changed files with 4339 additions and 0 deletions

20
TimeInfo.hpp Normal file
View File

@@ -0,0 +1,20 @@
#ifndef CHESS_ENGINE_TIMEINFO_HPP
#define CHESS_ENGINE_TIMEINFO_HPP
#include <optional>
#include <chrono>
struct PlayerTimeInfo {
std::chrono::milliseconds timeLeft;
std::chrono::milliseconds increment;
};
struct TimeInfo {
using Optional = std::optional<TimeInfo>;
PlayerTimeInfo white;
PlayerTimeInfo black;
std::optional<unsigned> movesToGo;
};
#endif