We will be creating a sudoku checker. Sudoku is a game where you try to place numbers 1 through 9 (9 times) on a 9×9 grid. Each number can only be in one row, column or 3×3 cell. Sudoku initial starts with some of the number already being placed. Utilizing the rule mentioned prior, the player tries to fill in the rest of the 9×9 grid using logic. For more details, check org/wiki/Sudoku“>https://en.wikipedia.org/wiki/Sudoku .
Your program will ask the user the name of the starting file. If the file does not exist, it will ask the user again. Afterward, the file will be loaded and checked if it is valid sudoku. As mentioned above, valid sudoku is one that only contains unique numbers in every row, column, and 3×3 cell. Once the init sudoku is loaded, the user can type in a row, column, and number. If the number is not valid or there is already another number placed there. The program will ask for another one.


0 comments