> def make_board
>   puts "Push enter, then begin input."
>   puts "(For Input Format Compilance, extra enter key is necessary)"
>   gets
>   board = Array.new(9){[]}
>   9.times do |i|
>     instr = gets.strip
>     board[i] = instr.split(//).map{|c| c.to_i}
>     puts board[i].inspect
>   end
>   return board
> end
> 

This code returns a 10 element array, with 0 in index 9.

-- 
Posted via http://www.ruby-forum.com/.