var n = 5 [n.of(1), (n-2).of([1, (n-2).of(0)..., 1])..., n.of(1)].each {|row| say row.join(' ') }
1 1 1 1 1 1 0 0 0 1 1 0 0 0 1 1 0 0 0 1 1 1 1 1 1
Last updated 2 years ago