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

Public Types

enum  : int8_t {
  E = 1 , N = 8 , W = -1 , S = -8 ,
  NN = N + N , SS = S + S , NE = N + E , SE = S + E ,
  NW = N + W , SW = S + W , NNE = N + N + E , ENE = E + E + N ,
  ESE = E + E + S , SSE = S + S + E , SSW = S + S + W , WSW = W + W + S ,
  WNW = W + W + N , NNW = N + N + W , NONE = 0
}

Public Member Functions

constexpr Direction (int8_t value)
constexpr void set (int8_t value)
constexpr int8_t value () const
constexpr operator int8_t () const

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