From d90a870e07c57a086bcaea5fc49afcf517dd6c43 Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:34:01 +0100 Subject: [PATCH] refactoring: 6 --- src/main/c/sudoku.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index 969ecdd..81226e5 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -25,7 +25,7 @@ void initializeGrid(int grid[SIZE][SIZE]); void create_playing_field(int grid[SIZE][SIZE], int difficulty, int level); void Player_actions_for_playing(int grid[SIZE][SIZE]); void giving_hints_to_player(int grid[SIZE][SIZE]); -void inputFunction(int grid[SIZE][SIZE]); +void write_userinput_into_Sudoku(int grid[SIZE][SIZE]); void printGrid(int grid[SIZE][SIZE]); void doneFunction(int grid[SIZE][SIZE]); @@ -320,7 +320,7 @@ void Player_actions_for_playing(int grid[SIZE][SIZE]) { while (1) { printf("\nTurn function - Choose an action:\n"); printf("1. Hints\n"); - printf("2. Input function\n"); + printf("2. Insert Number into Game\n"); printf("3. Print Sudoku grid\n"); printf("4. Done function\n"); printf("5. Select level\n"); @@ -346,7 +346,7 @@ void Player_actions_for_playing(int grid[SIZE][SIZE]) { giving_hints_to_player(grid); break; case 2: - inputFunction(grid); + write_userinput_into_Sudoku(grid); break; case 3: printGrid(grid); @@ -456,7 +456,7 @@ void giving_hints_to_player(int grid[SIZE][SIZE]) { } } -void inputFunction(int grid[SIZE][SIZE]) { +void write_userinput_into_Sudoku(int grid[SIZE][SIZE]) { printf("\nInput function - Choose an action:\n"); printf("1. Insert value in an empty field\n"); printf("2. Clear an already filled field\n");