Closed kyletolle closed 12 years ago
Saw this article on duck typing today. Should be able to incorporate some of that into the error handling. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/100511
Didn't put in code to gracefully handle errors that did occur. Ruby just quits and prints out the stack.
Seems like it'd be better to do all the error checking for the sudoku in one place. That way we can raise and handle all the errors related to this in a common place instead of having it spread all over.
Would this be best in Puzzle#valid? or somewhere else? Also need to handle all these errors gracefully.