I figured that participating in the ruby quiz would be a good way to learn ruby. Here are my results followin what was done by vance. > for i in *.txt; do time ./sudoku.rb < $i; done +-------+-------+-------+ | 9 6 3 | 1 7 4 | 2 5 8 | | 1 7 8 | 3 2 5 | 6 4 9 | | 2 5 4 | 6 8 9 | 7 3 1 | +-------+-------+-------+ | 8 2 1 | 4 3 7 | 5 9 6 | | 4 9 6 | 8 5 2 | 3 1 7 | | 7 3 5 | 9 6 1 | 8 2 4 | +-------+-------+-------+ | 5 8 9 | 7 1 3 | 4 6 2 | | 3 1 7 | 2 4 6 | 9 8 5 | | 6 4 2 | 5 9 8 | 1 7 3 | +-------+-------+-------+ real 0m0.041s user 0m0.013s sys 0m0.007s +-------+-------+-------+ | 3 6 2 | 8 4 5 | 1 7 9 | | 1 7 5 | 9 6 3 | 2 4 8 | | 9 4 8 | 2 1 7 | 6 3 5 | +-------+-------+-------+ | 7 1 3 | 4 5 8 | 9 6 2 | | 2 9 6 | 7 3 1 | 5 8 4 | | 8 5 4 | 6 2 9 | 7 1 3 | +-------+-------+-------+ | 4 3 9 | 5 7 6 | 8 2 1 | | 5 2 7 | 1 8 4 | 3 9 6 | | 6 8 1 | 3 9 2 | 4 5 7 | +-------+-------+-------+ real 0m0.062s user 0m0.048s sys 0m0.003s +-------+-------+-------+ | _ _ _ | _ _ _ | _ _ _ | | 7 _ _ | _ 8 _ | 3 _ _ | | _ _ _ | 7 _ _ | _ _ _ | +-------+-------+-------+ | _ _ _ | _ _ _ | _ _ _ | | _ _ 9 | _ 1 _ | _ _ _ | | _ _ _ | _ _ 7 | _ _ _ | +-------+-------+-------+ | _ _ 1 | _ _ 8 | _ 2 _ | | _ _ _ | _ 2 6 | _ _ 1 | | _ _ _ | 3 _ 5 | _ _ _ | +-------+-------+-------+ I can't solve this one real 0m0.031s user 0m0.012s sys 0m0.006s +-------+-------+-------+ | 4 6 1 | 9 2 7 | 8 5 3 | | 5 7 _ | 3 1 6 | 4 9 2 | | 3 2 9 | 8 4 5 | 6 1 7 | +-------+-------+-------+ | 1 9 8 | 7 3 4 | 5 2 6 | | 7 4 2 | 6 5 _ | 1 3 9 | | 6 _ 3 | 1 8 9 | 7 4 _ | +-------+-------+-------+ | 2 1 6 | 5 7 3 | 9 8 4 | | 8 3 7 | 4 9 1 | 2 6 5 | | 9 5 4 | 2 6 8 | 3 7 1 | +-------+-------+-------+ I can't solve this one real 0m0.029s user 0m0.014s sys 0m0.005s Should I post my code now or later? It still has a lot of kinks to work out, but it seems to work pretty well. I'll be back later today to post it. Thanks!! -----Horndude77