CHAPTER 17

image

Special Sudokus

Now that you know how to generate standard Sudoku puzzles, it is time to learn how to make some special ones.

Designer Sudokus

By “designer Sudokus,” I mean puzzles in which the clues form a particular pattern. For example, Figure 17-1 shows a “diamond Sudoku” (with difficulty level 3). I grayed the cells with the clues to highlight the pattern.

9781484209967_Fig17-01.jpg

Figure 17-1. A diamond Sudoku

To implement designer puzzles, you need to modify sudoku_gen.c in such a way that instead of removing clues by pseudorandom choices, it removes ...

Get Sudoku Programming with C 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.