#include "chess.h"

Defines | |
| #define | PIECE_SYMBOL_STRING_LEN 14 |
Typedefs | |
| typedef char | ChessPieceSymbol [PIECE_SYMBOL_STRING_LEN] |
Functions | |
| void | print_chess_board (ChessBoard chess_board) |
| bool | get_piece_symbol (struct ChessPiece piece, ChessPieceSymbol piece_symbol) |
| #define PIECE_SYMBOL_STRING_LEN 14 |
Constant defining the length of the string holding the symbol of a chess piece. This string also holds the color information and, therefore, has to get this length.
| typedef char ChessPieceSymbol[PIECE_SYMBOL_STRING_LEN] |
The chess piece symbol holds the printable form of a chess piece.
| bool get_piece_symbol | ( | struct ChessPiece | piece, | |
| ChessPieceSymbol | piece_symbol | |||
| ) |
Provides a printable symbol for a specific chess piece.
| piece | The chess piece which symbol to be returned. | |
| piece_symbol | The symbol of the chess piece in printable form |
| void print_chess_board | ( | ChessBoard | chess_board | ) |
print_chess_board prints a chess board into the terminal window.
| chess_board | The chess board to be printed. |

1.7.0