puzzle.py recieves a board and checks if it is valid or not. For more details, check the rules.
The playing field of the logic puzzle has a square shape of 9 × 9 cells. The playing field contains cells of different colors that are used in the game and white areas that are not used for the game.
- The colored cells of each line must contain numbers from 1 to 9 without repetition.
- The colored cells of each column must contain the numbers 1 to 9 without repetition.
- Each block of cells of the same color must contain numbers from 1 to 9 without repetition
Example of the game board: