Chess Engine
A Chess Engine project written in C++.
Loading...
Searching...
No Matches
Promotion Struct Reference

Public Types

enum  Value : uint8_t {
  TO_KNIGHT , TO_BISHOP , TO_ROOK , TO_QUEEN ,
  NB = 4 , SIZE = 2 , MASK = (1 << SIZE) - 1
}

Public Member Functions

constexpr Promotion (Value value)
constexpr Promotion (uint8_t value)
constexpr operator uint8_t () const

Static Public Member Functions

static constexpr uint8_t size ()
static constexpr uint8_t mask ()
static constexpr uint8_t number ()

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