From: Christer Nilsson Date: 2005-12-31T05:38:20+09:00 Subject: Re: conciseness v. clarity (was Re: Sudoku) > First Column has two 9's ! > cheers > Simon Excellent observation, Simon! The error is in the display definition: - print " " + @s[a][b][c][d].to_s + print " " + @s[a][c][b][d].to_s New output: 2 3 9 | 5 4 8 | 6 7 1 4 7 1 | 2 6 9 | 8 5 3 6 8 5 | 3 7 1 | 4 2 9 -------+-------+------- 5 1 6 | 7 8 3 | 9 4 2 8 9 2 | 1 5 4 | 3 6 7 3 4 7 | 6 9 2 | 1 8 5 -------+-------+------- 1 6 4 | 9 2 5 | 7 3 8 7 2 3 | 8 1 6 | 5 9 4 9 5 8 | 4 3 7 | 2 1 6 Sorry, I shouldn't have opened that bottle of champagne yet! Christer -- Posted via http://www.ruby-forum.com/.