CHAPTER 6
Implementing “Hidden” Strategies
The two “hidden” strategies, hidden pair and hidden triple, have the same general design: first, they build lists of the cells containing each candidate number; then, they analyze the lists to see whether pairs or triples are hidden inside the lists.
As it is done for the naked strategies described in Chapter 5, you implement each hidden strategy with two functions, one applying the strategy to a unit and one executing the unit function for each row, column, and box of the Sudoku. Again, as with the naked strategies, you will find that the two general functions for pairs and triples (Listing 6-1 and ...
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.