From 72c0ec4bd366b125e47ad729c78f0c684251267b Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Mon, 6 Jun 2022 17:42:29 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'final/game.h'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- final/game.h | 61 +++++++++++----------------------------------------- 1 file changed, 12 insertions(+), 49 deletions(-) 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