CHAPTER 3

image

The Solver Program

The main program, sudoku_solver.c, accepts the Sudoku to be solved, performs some checks, solves the Sudoku, and presents the final result. It is the module that binds together all the various functions of the program.

Several of the modules listed in this and following chapters include commented-out pieces of code whose purpose is to display partial or final results of algorithms. If you enable them by removing the enclosing /* and */, they will help you to better understand how the program works and to modify the code if you so wish.

Before talking about the main program itself, you need to study def.h (see Listing ...

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.