Chapter 25Sudoku

DOI: 10.1201/9781003257981-25

25.1 Sudoku Game

Sudoku is a number game with a 9×9 board (81 cells) of numbers. Each row (of 9 cells) has numbers of 1, 2, …, 9. Each column (also 9 cells) has numbers of 1, 2, …, 9. Figure 25.1 (a) shows an example of a solution of Sudoku. The following are the three rules: Each number between 1 and 9 appears exactly once in the 9 cells of

  1. Each column shown in Figure 25.1 (a).

  2. Each row Figure 25.1 (b).

  3. Each 3×3 block shown in Figure 25.1 (c).

Figure 25.1: An example of Sudoku. This example is from the book “Sudoku Collection, Volume 124 by Kappa Books”.

The 81 cells are divided into nine ...

Get Intermediate C Programming, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.