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

Public Types

enum  : uint8_t {
  FA , FB , FC , FD ,
  FE , FF , FG , FH ,
  FIRST = FA , LAST = FH , NONE = 8 , MASK = 0b111 ,
  SIZE = 3 , NB = 8
}

Public Member Functions

constexpr File (uint8_t value=none())
constexpr File (int value=none())
constexpr File (char c)
void print (std::ostream &os) const
Public Member Functions inherited from Coordinate< File >
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 (File from, File to)
Static Public Member Functions inherited from Coordinate< File >
static constexpr File none ()
static constexpr uint8_t number ()
static constexpr uint8_t mask ()
static constexpr uint8_t size ()
Static Public Member Functions inherited from Iterable< File >
static constexpr File first ()
static constexpr File last ()
static constexpr Range all ()

Static Public Attributes

static constexpr std::string_view fileToChar = "abcdefgh"

Additional Inherited Members

Public Attributes inherited from Coordinate< File >
friend Derived

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