Sudoku Solver for Mac OS X v0.6
Brad adds some minor updates to Sudoku
Solver, and puts the sources online for all to see.
A quick entry today. I did some work last week
on the Sudoku Solver presented in my last blog entry to make it a bit
smarter.For one, the Sudoku Solver now
will know to stop calculating if it reaches an impasse. This can occur if, for
example, the puzzle to be solved is entered incorrectly, or if it simply lacks
the logic to solve a given puzzle. I've also added a menu item to clear all of
the puzzle cells. This will in fact re-initialize the puzzle, so once you solve
a puzzle, you can just clear it out and enter new puzzle
data.The "Calculate" button is also a
bit smarter -- it will become disabled when you shouldn't be able to press it,
such as once a puzzle has been solved or is at an impasse. Clearing all cells
via the new Edit menu item will reset
this.Lastly, perhaps the most
important change is that I'm releasing the sources under the GNU General Public
License. The source bundle is a complete Xcode v2.1 project tree, so
if you have Xcode v2.1 (or better) installed, you can open the .xcodeproj file
to work with and build the
sources.There is no source repository
for this code at this time -- I'm not sure if it makes sense to have one at this
point. However, if demand warrants it, I can set up a project site and CVS
repository for it.Otherwise, if you're
new to Objective-C programming and are looking for a fairly simple example from
someone else who is learning Objective-C programming, please feel free to grab
my sources and play around with
them.Sudoku Solver
v0.6:Sudoku_Solver_v0-6.zipSudoku
Solver v0.6
Sources:Sudoku_Solver_v0-6_sources.dmg
Posted: Monday - June 27, 2005 at 03:24 PM