Browse Source

Commit 30 code

main^2
Lucas Heil 11 months ago
committed by Peter Wiebe
parent
commit
fb2c5ef09d
  1. 3
      src/main/c/sudoku.c

3
src/main/c/sudoku.c

@ -315,6 +315,7 @@ void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) {
} }
void turnFunction(int grid[SIZE][SIZE]) { void turnFunction(int grid[SIZE][SIZE]) {
while (1) {
printf("\nTurn function - Choose an action:\n"); printf("\nTurn function - Choose an action:\n");
printf("1. Tip function\n"); printf("1. Tip function\n");
printf("2. Input function\n"); printf("2. Input function\n");
@ -358,6 +359,8 @@ void turnFunction(int grid[SIZE][SIZE]) {
printf("Invalid input. Please enter a number between 1 and 6.\n"); printf("Invalid input. Please enter a number between 1 and 6.\n");
} }
} }
}
void tipFunction(int grid[SIZE][SIZE]) { void tipFunction(int grid[SIZE][SIZE]) {

Loading…
Cancel
Save