From 61fcead70dd2b029baba6a4bfc2b64f91899878a Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:33:18 +0100 Subject: [PATCH] refactoring: 4 --- src/main/c/sudoku.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index d7f0b73..81849ef 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -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");