Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
chess_color.h
Go to the documentation of this file.
1#ifndef CHESS_COLOR_H
2#define CHESS_COLOR_H
3
4#include <iosfwd>
5#include <string>
6#include <vector>
7
9enum class chess_color
10{
12};
13
14std::vector<chess_color> get_all_chess_colors() noexcept;
15
18chess_color get_next(const chess_color c) noexcept;
19
23
25void test_chess_color();
26
27std::string to_human_str(const chess_color c) noexcept;
28
35char to_fen_char(const chess_color c) noexcept;
36
37std::string to_str(const chess_color c) noexcept;
38
39std::ostream& operator<<(std::ostream& os, const chess_color c) noexcept;
40
41#endif // CHESS_COLOR_H
chess_color get_other_color(const chess_color c) noexcept
Get the other color Identical to get_next}.
Definition chess_color.cpp:24
std::string to_str(const chess_color c) noexcept
Definition chess_color.cpp:90
char to_fen_char(const chess_color c) noexcept
Convert the color to a FEN character.
Definition chess_color.cpp:85
std::string to_human_str(const chess_color c) noexcept
Definition chess_color.cpp:77
chess_color get_next(const chess_color c) noexcept
Get the next color.
Definition chess_color.cpp:19
std::vector< chess_color > get_all_chess_colors() noexcept
Definition chess_color.cpp:9
void test_chess_color()
Test the chess_color functions.
Definition chess_color.cpp:31
chess_color
A chess piece color.
Definition chess_color.h:10