Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Enumerations | Functions
chess_color.h File Reference
#include <iosfwd>
#include <string>
#include <vector>
Include dependency graph for chess_color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  chess_color { black , white }
 A chess piece color. More...
 

Functions

std::vector< chess_colorget_all_chess_colors () noexcept
 
chess_color get_next (const chess_color c) noexcept
 Get the next color.
 
chess_color get_other_color (const chess_color c) noexcept
 Get the other color Identical to get_next}.
 
void test_chess_color ()
 Test the chess_color functions.
 
std::string to_human_str (const chess_color c) noexcept
 
char to_fen_char (const chess_color c) noexcept
 Convert the color to a FEN character.
 
std::string to_str (const chess_color c) noexcept
 
std::ostream & operator<< (std::ostream &os, const chess_color c) noexcept
 

Enumeration Type Documentation

◆ chess_color

enum class chess_color
strong

A chess piece color.

Enumerator
black 
white 

Function Documentation

◆ get_all_chess_colors()

std::vector< chess_color > get_all_chess_colors ( )
noexcept

◆ get_next()

chess_color get_next ( const chess_color  c)
noexcept

Get the next color.

Identical to get_other_color}.

◆ get_other_color()

chess_color get_other_color ( const chess_color  c)
noexcept

Get the other color Identical to get_next}.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const chess_color  c 
)
noexcept

◆ test_chess_color()

void test_chess_color ( )

Test the chess_color functions.

◆ to_fen_char()

char to_fen_char ( const chess_color  c)
noexcept

Convert the color to a FEN character.

Color FEN character
white w
black b

◆ to_human_str()

std::string to_human_str ( const chess_color  c)
noexcept

◆ to_str()

std::string to_str ( const chess_color  c)
noexcept