You’ve no doubt seen those annoying Sudoku puzzles in the newspaper. I’ve never had much interest in them, because solving them seems like pure grunt work, much of it trial and error. Lately, I’ve decided to see how easy it would be to write a program to solve them. Given the speed of modern computers, it’s actually feasible to solve them completely by trial and error, but there’s not much appeal in doing that, and it wouldn’t teach a human anything about solving them. So, my Sudoku solver uses logic strategies that are simple enough for a human to apply.
The program currently uses two very basic well known strategies, plus a slightly more complex one. In its current state, the program won’t solve some of the more difficult puzzles. So, this may be a continuing Just Code submission in coming weeks if/when I add other solving strategies.
Project file is here:
Sudoku Solver Project
Refer to the app.RevisionNotes note and the Help screen for additional info.
A set of example Sudoku puzzles is also included in a plain text file.