diff --git a/final/game.h b/final/game.h index 4a8df69..6fc071f 100644 --- a/final/game.h +++ b/final/game.h @@ -1,49 +1,12 @@ -#include -#define BLANK ' ' -/** - * Function draw game field - * @param rows count of rows - * @param columns count of columns - * @param field hold 2d array of characters in game - */ -void game_field(const int rows, const int columns, char field[rows][columns]); - - -/** - * Check fields rows if there are same characters - * @param rows count of rows - * @param columns count of columns - * @param field hold 2d array of characters in game - * @return true, if columns are complete; false otherwise - */ -bool check(const int rows, const int columns, char field[rows][columns]); - - - -/** - * Function returns 2D array after moving characters based on player input - * When characters are not same, nothing happens and warning appears - * Function also find the most upper character and the lower character from columns - * @param rows count of rows - * @param columns count of columns - * @param field hold 2d array of characters in game - * @param x is column from where character should be moved - * @param y is column where character should be moved - */ -void down_possible(const int rows, const int columns, char field[rows][columns], int x, int y); - - -/** - * Function returns 2D array of randomly generated characters - * There must be two blank columns and other should be full of characters without '\0' or blank spaces - * @param rows count of rows - * @param columns count of columns - * @param field hold 2d array of characters in game - */ -void generator(const int rows, const int columns, char field[rows][columns]); - - -/** - * Starts interactive ball sort puzzle game - */ -void ball_sort_puzzle(); +#include +#define BLANK ' ' + +void game_field(const int rows, const int columns, char field[rows][columns]); + +bool check(const int rows, const int columns, char field[rows][columns]); + +void down_possible(const int rows, const int columns, char field[rows][columns], int x, int y); + +void generator(const int rows, const int columns, char field[rows][columns]); + +void ball_sort_puzzle(); \ No newline at end of file