Functions

chess_printer.cpp File Reference

#include <stdio.h>
#include <string.h>
#include "chess_printer.h"
#include "chess.h"
Include dependency graph for chess_printer.cpp:

Functions

void print_chess_board (ChessBoard chess_board)
bool get_piece_symbol (struct ChessPiece piece, ChessPieceSymbol piece_symbol)

Function Documentation

bool get_piece_symbol ( struct ChessPiece  piece,
ChessPieceSymbol  piece_symbol 
)

Provides a printable symbol for a specific chess piece.

Parameters:
piece The chess piece which symbol to be returned.
piece_symbol The symbol of the chess piece in printable form
Returns:
True if the requested symbol was found, i.e, the given piece has a valid color and type, False otherwise.
See also:
PieceType, PieceColor, ChessPiece
void print_chess_board ( ChessBoard  chess_board  ) 

print_chess_board prints a chess board into the terminal window.

Parameters:
chess_board The chess board to be printed.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines