[SOLUTION] Sodoku Solver (#43)

From: gdefty@attglobal.net
Date: August 25, 2005 10:13:34 PM CDT
To: james@grayproductions.net,

James,

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 :slight_smile:

Where I know I will be disappointed is in the
ruby-ness of my code (or rather, lack of it :frowning:
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.

Regards,

graeme

Sod.rb (5.86 KB)

Sod_test.rb (3.09 KB)

Sodoku.rb (2.89 KB)

···

Begin forwarded message: