public
Description: Dave Hoover's stuff
Homepage: http://redsquirrel.com/dave
Clone URL: git://github.com/redsquirrel/nest.git
Dave Hoover (author)
Sat Apr 25 22:53:29 -0700 2009
commit  2829f85cd0ac58844f1a53628268fcde04cea79d
tree    a20ec993a5f1b1f253c3ee1a6dfaa66c02219825
parent  0ca7216710d9d8e8748f133ab096163769810de1
nest / sudoku
name age message
..
file README Thu Jan 01 20:30:50 -0800 2009 Final tweaks before starting the port to Clojure [Dave Hoover]
file board.rb Thu Jan 01 20:30:50 -0800 2009 Final tweaks before starting the port to Clojure [Dave Hoover]
file brain.rb Fri Jan 02 06:53:47 -0800 2009 Refactoring and commenting [Dave Hoover]
file brain_cell.rb Fri Jan 02 06:53:47 -0800 2009 Refactoring and commenting [Dave Hoover]
file core_ext.rb Thu Jan 01 19:57:32 -0800 2009 Bringing the sudoku solver over from gist [Dave Hoover]
file grids.rb Fri Jan 02 06:53:47 -0800 2009 Refactoring and commenting [Dave Hoover]
file solver.rb Fri Jan 02 06:53:47 -0800 2009 Refactoring and commenting [Dave Hoover]
file solvers.rb Fri Jan 02 06:53:47 -0800 2009 Refactoring and commenting [Dave Hoover]
file test.rb Fri Jan 02 06:25:45 -0800 2009 Fixed tests after some files names' chanded [Dave Hoover]
sudoku/README
To use this code, require 'sudoku/solver', then call the solve function with a String like

53  7    
6  195   
 98    6 
8   6   3
4  8 3  1
7   2   6
 6    28 
   419  5
    8  79

and the solve function will return a String like

534678912
672195348
198342567
859761423
426853791
713924856
961537284
287419635
345286179

You can run the tests with: ruby test.rb

The original evolution of this solution can be found at http://gist.github.com/41670