9enum class Nag : std::uint8_t {
31 DevelopmentAdvantage = 35,
39 ModerateKingSide = 56,
42 ModerateQueenSide = 62,
44 SlightCounterPlay = 130,
45 BlackSlightCounterPlay = 131,
47 BlackCounterPlay = 133,
48 DecisiveCounterPlay = 134,
49 BlackDecisiveCounterPlay = 135,
61 OppositeBishops = 153,
76constexpr std::uint8_t nagCode(Nag nag) {
77 return static_cast<std::uint8_t
>(nag);
80constexpr Nag nagFromCode(std::uint8_t value) {
81 return static_cast<Nag
>(value);
84inline constexpr std::uint8_t maxNagCode = nagCode(Nag::Without);
86std::string nagToString(Nag nag,
bool asSymbol);
87std::string_view nagToSymbol(Nag nag);
88Nag nagFromString(std::string_view text);