Divide the rectangle by tabasa

def b a,x,y,k,m\x0d
k.times{|i|\x0d
k.times{|j|\x0d
a[x+j][y+i,1]=m\x0d
}\x0d
}\x0d
a\x0d
end\x0d
\x0d
a=[]\x0d
32.times{a<<"i"*33}\x0d
a=b a,0,0,18,"a"\x0d
a=b a,0,18,15,"b"\x0d
a=b a,15,18,7,"c"\x0d
a=b a,15,25,8,"d"\x0d
a=b a,18,0,14,"e"\x0d
a=b a,18,14,4,"f"\x0d
a=b a,22,14,10,"g"\x0d
a[22][24,1]="h"\x0d
\x0d
32.times{|i|\x0d
33.times{|j| print ' '+a[i][j,1]}\x0d
puts\x0d
}\x0d

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

download

return to the top page