diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index 3ee5b72..41f512f 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -23,6 +23,7 @@ void availableLevelsFunction(int difficulty); void selectLevel(int grid[SIZE][SIZE]); void initializeGrid(int grid[SIZE][SIZE]); void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level); +void turnFunction(int grid[SIZE][SIZE]); int availableLevels[3][3][SIZE][SIZE] = { @@ -144,6 +145,7 @@ void startSudoku() { if ((difficulty >= 1 && difficulty <= 3) && input[1] == '\0') { availableLevelsFunction(difficulty); selectLevel(grid); + turnFunction(grid); } else { printf("Invalid input. Please enter a number between 1 and 3.\n"); } @@ -196,7 +198,6 @@ void initializeGrid(int grid[SIZE][SIZE]) { void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) { initializeGrid(grid); - printf("Level is getting initialized"); for (int i = 0; i < SIZE; i++) { for (int j = 0; j < SIZE; j++) { grid[i][j] = availableLevels[difficulty - 1][level - 1][i][j]; @@ -212,7 +213,9 @@ void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) { } - +void turnFunction(int grid[SIZE][SIZE]) { + printf("\nTurn function - Choose an action:\n"); +}