BlueBubble 1.0
A recommendation algorithm for movies based on a Netlfix database
Loading...
Searching...
No Matches
utilities.h
Go to the documentation of this file.
1#ifndef UTILITIES
2#define UTILITIES
3#include "coordinates.h"
4#include "config.h"
5#include <regex>
6
7bool is_corresponding(coordinates start, coordinates end, coordinates movement);
11bool correct_input(std::string const & cmd);
12bool standard_input(std::string const & cmd);
13bool king_castle_input(std::string const & cmd);
14bool queen_castle_input(std::string const & cmd);
15void print_debug(int i);
16
17#endif
a class representing coordinates
Definition coordinates.h:5
terminal_color
a type for terminal colors, used in the print functions.
Definition config.h:5
void print_debug(int i)
Print a message to the standard output : "test i". Used for debug purposes.
Definition utilities.cc:119
bool king_castle_input(std::string const &cmd)
Check if an input correponds to a king castling move.
Definition utilities.cc:104
void terminal_reset_all()
reset all terminal attributes
Definition utilities.cc:79
bool standard_input(std::string const &cmd)
Check if an input corresponds to a standard move.
Definition utilities.cc:96
bool correct_input(std::string const &cmd)
Check if an input is conform.
Definition utilities.cc:86
void terminal_set_background_color(terminal_color color)
set the terminal background color to the input
Definition utilities.cc:48
bool queen_castle_input(std::string const &cmd)
Check if an input corresponds to a queen castling move.
Definition utilities.cc:112
void terminal_set_text_color(terminal_color color)
set the terminal font color to the input
Definition utilities.cc:16
bool is_corresponding(coordinates start, coordinates end, coordinates movement)
verify if a movement is corresponding to a starting and ending coordinates
Definition utilities.cc:10