checkers pattern by rochefort

a,b=gets.split.map{|x|x.to_i}\x0d
a.times{|x|s=[];t=(x+1)%2\x0d
b.times{|y|s<<t;t=-t+1}\x0d
puts s*(" ")}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page