1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
enum class Color { Blue, Green, Red, Yellow, None };
struct Piece {
Color color {Color::None};
unsigned int index {(unsigned int)(-1)};
};
struct Case {
std::array<2, Piece*> pieces {nullptr, nullptr};
};
struct PartieCouleur {
std::array<XX, Case> cases;
};
struct Plateau {
std::array<4, PartieCouleur> parties;
static constexpr unsigned int BluePart = 0;
static constexpr unsigned int GreenPart = 1;
static constexpr unsigned int RedPart = 2;
static constexpr unsigned int YellowPart = 3;
}; |
Partager