Chess Engine
A Chess Engine project written in C++.
|
Public Types | |
enum | : uint8_t { R1 , R2 , R3 , R4 , R5 , R6 , R7 , R8 , FIRST = R1 , LAST = R8 , NONE = 8 , MASK = 0b111 , SIZE = 3 , NB = 8 } |
Public Member Functions | |
constexpr | Rank (uint8_t value=none()) |
constexpr | Rank (int value=none()) |
constexpr | Rank (char c) |
constexpr bool | pawnStarting (Color color) const |
constexpr bool | pawnPromoting (Color color) const |
void | print (std::ostream &os) const |
Public Member Functions inherited from Coordinate< Rank > | |
constexpr void | set (uint8_t value) |
constexpr uint8_t | value () const |
constexpr bool | ok () const |
constexpr | operator uint8_t () |
Static Public Member Functions | |
static constexpr uint8_t | distance (Rank from, Rank to) |
Static Public Member Functions inherited from Coordinate< Rank > | |
static constexpr Rank | none () |
static constexpr uint8_t | number () |
static constexpr uint8_t | mask () |
static constexpr uint8_t | size () |
Static Public Member Functions inherited from Iterable< Rank > | |
static constexpr Rank | first () |
static constexpr Rank | last () |
static constexpr Range | all () |
Static Public Attributes | |
static constexpr std::string_view | rankToChar = "12345678" |
Additional Inherited Members | |
Public Attributes inherited from Coordinate< Rank > | |
friend | Derived |