Skip to content
Snippets Groups Projects
Commit a191a077 authored by Clément Desberg's avatar Clément Desberg
Browse files

commited on 20240510

parent 893ead75
Branches
No related merge requests found
chess: system/game.o system/board.o pieces/pawn.o pieces/king.o pieces/queen.o pieces/bishop.o pieces/knight.o pieces/rook.o pieces pieces/piece.o system/coordinates.o system/utilities.o
g++ pieces/*.o system/*.o -o src/echecs -Wall -Wextra
g++ pieces/*.o system/*.o -o chess -Wall -Wextra
make clean
%.o: %.cc
......
......@@ -13,10 +13,7 @@
#include "../pieces/king.h"
#include <regex>
#include <string>
#define BACKGROUND_COLOR1 terminal_white
#define BACKGROUND_COLOR2 terminal_yellow
#define PIECES_COLOR terminal_black
#define WARNING_TEXT_COLOR terminal_red
#include "config.h"
/// @brief A class representing the chess board
class board{
......
#ifndef UTILITIES
#define UTILITIES
#include "coordinates.h"
#include "config.h"
#include <regex>
/// @brief a type for terminal colors, used in the print functions.
enum terminal_color { terminal_black, terminal_red, terminal_green, terminal_yellow, terminal_blue, terminal_magenta, terminal_cyan, terminal_white };
bool is_corresponding(coordinates start, coordinates end, coordinates movement);
void terminal_set_text_color(terminal_color color);
void terminal_set_background_color(terminal_color color);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment