chessCAMO
|
Functions | |
string | boardFenConverter (Chess &chess) |
Converts a given board position into a FEN string representation. More... | |
void | appendFEN (string &fen, int &empty_count, char next_char, bool isWhite) |
Decides what type of character to append to the formed FEN string. More... | |
string anonymous_namespace unit anonymous_namespace{unit.cpp}::cpp::boardFenConverter | ( | Chess & | chess | ) |
Converts a given board position into a FEN string representation.
chess | The chess object |
void anonymous_namespace unit anonymous_namespace{unit.cpp}::cpp::appendFEN | ( | string & | fen, |
int & | empty_count, | ||
char | next_char, | ||
bool | isWhite | ||
) |
Decides what type of character to append to the formed FEN string.
fen | The FEN string that characters will be appended to (can be empty) | |
empty_count | The number of empty squares found in the current row | |
[in] | next_char | The next character to append to 'fen', must be one of P, N, B, Q, K (upper case) |
[in] | isWhite | True if the passed piece is white, False otherwise. Used to determine piece's letter case in 'fen'. |