From: James Edward Gray II Date: 2005-08-23T22:35:24+09:00 Subject: Re: [QUIZ] Sodoku Solver (#43) On Aug 23, 2005, at 6:54 AM, Adam Shelly wrote: > Ok, I've updated my version to resort to guessing when it can't deduce > all the values. Looking good. Here's a few general Ruby style tips. Feel free to ignore, if your not interested: 1. An easier way to write `print "line\n"` is `puts line`. 2. Instead of using the dprint() method and commenting out the print, try puts "whatever" if $DEBUG. Then you can use Ruby's -d command-line switch to enable debugging output whenever you like (it sets $DEBUG). 3. You can drop those outer parenthesis for if statements. `if (condition)` can be just `if condition`. James Edward Gray II