Skip to content

Commit

Permalink
getch()
Browse files Browse the repository at this point in the history
  • Loading branch information
sr-tamim committed Dec 31, 2023
1 parent b54e361 commit f0df760
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sudoku-win.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
* @version 1.0
* @authors
* - SR Tamim <https://sr-tamim.vercel.app>
*
*
* @section LICENSE
* This program is licensed under MIT License. See the LICENSE file in the root of this repository for details.
*
*
* @section Dependencies
* - stdio.h
* - stdlib.h
* - stdbool.h
* - time.h
* - math.h
*
*
* @section NOTES
* This program is tested on Windows 11 using MinGW compiler
* The difference between this program and the Linux version is that this program uses system("cls") to clear the screen and in printSudoku() function, it uses ASCII characters to draw the board. The Linux version uses ANSI escape sequences to clear the screen and Unicode (box drawing) characters to draw the board.
*
*
* @section Usage
* - Compile the program using C compiler (gcc, clang, mingw, etc)
* - Run the executable file
Expand Down Expand Up @@ -216,7 +216,9 @@ int main()
}

// exit the program
exit:
exit:
printf("\nPress any key to close the program...");
getch();
return 0; // return 0 to indicate successful execution
}
/* =========== End of Main Function =========== */
Expand Down Expand Up @@ -455,7 +457,7 @@ void printSudoku()
// print the row numbers on the left
if (j == 0)
printf("%d | ", i + 1);

// print the cell value
printf("%d ", board.unsolved[i][j]);

Expand Down

0 comments on commit f0df760

Please sign in to comment.