My stab at a sudoku solver. A bit rough roung the
edges (I have a job to do!) but it works.
It seemed to me that basic algorithm and by
association, data representation were the key
factors here, and I was reasonably pleased with my
choices (until I see some of the other solutions
and realise what a dummy I was somewhere
Where I know I will be disappointed is in the
ruby-ness of my code (or rather, lack of it
Mine always seems a bit pedestrian compared to
some of the elegant stuff you show. Sigh. I guess
I have been doing this too long. I'm probably
writing a COBOL solution in Ruby! Still, learning
is the whole point, no?
Anyway, I hope you find something of interest in
it, and thanks again for a great site.
Sod.rb (5.86 KB)
Sod_test.rb (3.09 KB)
Sodoku.rb (2.89 KB)
Begin forwarded message: