|
|
@ -23,7 +23,7 @@ void Level_Pool(int difficulty); |
|
|
|
void selectLevel(int grid[SIZE][SIZE]); |
|
|
|
void initializeGrid(int grid[SIZE][SIZE]); |
|
|
|
void create_playing_field(int grid[SIZE][SIZE], int difficulty, int level); |
|
|
|
void turnFunction(int grid[SIZE][SIZE]); |
|
|
|
void Player_actions_for_playing(int grid[SIZE][SIZE]); |
|
|
|
void tipFunction(int grid[SIZE][SIZE]); |
|
|
|
void inputFunction(int grid[SIZE][SIZE]); |
|
|
|
void printGrid(int grid[SIZE][SIZE]); |
|
|
@ -248,7 +248,7 @@ void Game_loop() { |
|
|
|
if ((difficulty >= 1 && difficulty <= 3) && input[1] == '\0') { |
|
|
|
Level_Pool(difficulty); |
|
|
|
selectLevel(grid); |
|
|
|
turnFunction(grid); |
|
|
|
Player_actions_for_playing(grid); |
|
|
|
} else { |
|
|
|
printf("Invalid input. Please enter a number between 1 and 3.\n"); |
|
|
|
} |
|
|
@ -316,7 +316,7 @@ void create_playing_field(int grid[SIZE][SIZE], int difficulty, int level) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void turnFunction(int grid[SIZE][SIZE]) { |
|
|
|
void Player_actions_for_playing(int grid[SIZE][SIZE]) { |
|
|
|
while (1) { |
|
|
|
printf("\nTurn function - Choose an action:\n"); |
|
|
|
printf("1. Tip function\n"); |
|
|
|