Chess Engine
A Chess Engine project written in C++.
Loading...
Searching...
No Matches
PieceType Struct Reference
Inheritance diagram for PieceType:
Iterable< PieceType >

Public Types

enum  : uint8_t {
  PAWN = 0b000 , KNIGHT = 0b001 , BISHOP = 0b010 , ROOK = 0b011 ,
  QUEEN = 0b100 , KING = 0b101 , FIRST = PAWN , LAST = KING ,
  MASK = 0b111 , SIZE = 3 , NB = 6
}

Public Member Functions

constexpr PieceType (uint8_t value)
constexpr uint8_t value () const
constexpr operator uint8_t ()

Static Public Member Functions

static constexpr uint8_t number ()
static constexpr uint8_t mask ()
static constexpr uint8_t size ()
Static Public Member Functions inherited from Iterable< PieceType >
static constexpr PieceType first ()
static constexpr PieceType last ()
static constexpr Range all ()

The documentation for this struct was generated from the following file: