From a3994e08f70b7c99cf7f674a7d0547a7f2c1ddc5 Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:34:15 +0100 Subject: [PATCH] refactoring: 7 --- 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 81226e5..5d06bbe 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -27,7 +27,7 @@ void Player_actions_for_playing(int grid[SIZE][SIZE]); void giving_hints_to_player(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]); +void check_if_Sudoku_solved(int grid[SIZE][SIZE]); @@ -322,7 +322,7 @@ void Player_actions_for_playing(int grid[SIZE][SIZE]) { printf("1. Hints\n"); printf("2. Insert Number into Game\n"); printf("3. Print Sudoku grid\n"); - printf("4. Done function\n"); + printf("4. Check if your Solution is correct\n"); printf("5. Select level\n"); printf("6. Quit\n"); @@ -352,7 +352,7 @@ void Player_actions_for_playing(int grid[SIZE][SIZE]) { printGrid(grid); break; case 4: - doneFunction(grid); + check_if_Sudoku_solved(grid); break; case 5: selectLevel(grid); @@ -556,7 +556,7 @@ void printGrid(int grid[SIZE][SIZE]) { } } -void doneFunction(int grid[SIZE][SIZE]) { +void check_if_Sudoku_solved(int grid[SIZE][SIZE]) { printf("\nDone function - Checking if the solution is correct...\n"); for (int i = 0; i < SIZE; i++) {