BlueBubble 1.0
A recommendation algorithm for movies based on a Netlfix database
|
Go to the source code of this file.
Functions | |
bool | is_corresponding (coordinates start, coordinates end, coordinates movement) |
verify if a movement is corresponding to a starting and ending coordinates | |
void | terminal_set_text_color (terminal_color color) |
set the terminal font color to the input | |
void | terminal_set_background_color (terminal_color color) |
set the terminal background color to the input | |
void | terminal_reset_all () |
reset all terminal attributes | |
bool | correct_input (std::string const &cmd) |
Check if an input is conform. | |
bool | standard_input (std::string const &cmd) |
Check if an input corresponds to a standard move. | |
bool | king_castle_input (std::string const &cmd) |
Check if an input correponds to a king castling move. | |
bool | queen_castle_input (std::string const &cmd) |
Check if an input corresponds to a queen castling move. | |
void | print_debug (int i) |
Print a message to the standard output : "test i". Used for debug purposes. | |
bool correct_input | ( | std::string const & | cmd | ) |
Check if an input is conform.
cmd | the input string |
Definition at line 86 of file utilities.cc.
bool is_corresponding | ( | coordinates | start, |
coordinates | end, | ||
coordinates | movement ) |
verify if a movement is corresponding to a starting and ending coordinates
start | starting coordinates |
end | ending coordinates |
movement | the move to be verified, represente as coordinates |
Definition at line 10 of file utilities.cc.
bool king_castle_input | ( | std::string const & | cmd | ) |
Check if an input correponds to a king castling move.
cmd | the input string |
Definition at line 104 of file utilities.cc.
void print_debug | ( | int | i | ) |
Print a message to the standard output : "test i". Used for debug purposes.
i | the number that appear on the debug message |
Definition at line 119 of file utilities.cc.
bool queen_castle_input | ( | std::string const & | cmd | ) |
Check if an input corresponds to a queen castling move.
cmd | the input string |
Definition at line 112 of file utilities.cc.
bool standard_input | ( | std::string const & | cmd | ) |
Check if an input corresponds to a standard move.
cmd | the input string |
Definition at line 96 of file utilities.cc.
void terminal_reset_all | ( | ) |
reset all terminal attributes
Definition at line 79 of file utilities.cc.
void terminal_set_background_color | ( | terminal_color | color | ) |
set the terminal background color to the input
color |
Definition at line 48 of file utilities.cc.
void terminal_set_text_color | ( | terminal_color | color | ) |
set the terminal font color to the input
color |
Definition at line 16 of file utilities.cc.