O'Reilly logo

Sudoku Programming with C by Giulio Zambon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required