Sudoku is a popular logic puzzle that uses a 9 by 9 array ofsquares that are organized into 3 by 3 subarrays. The puzzle solvermust fill in the squares with the digits 1 to 9 such that no digitis repeated in any row, any column, or any of the nine 3 by 3subgroups of squares. Initially, some squares are filled in alreadyand cannot be changed. For example, the following might be astarting configuration for a sudoku puzzle:
Create a class SudokuPuzzle that has the attributes
- board—a 9 by 9 array of integers that represents the currentstate of the puzzle, where zero indicates
OROR