Diamond cards by shinh

loop{puts'-'*17
a=(0..14).map{' '*17}
(3*i=eval(gets)).times{|j|v='h\x08\xc8\x08h\xc8\x02\x0e\xc2\xceh\x02\x0e\xc2\xce\x02\x0ebn\xc2\xce8\x02\x0ebn\xc2\xce8\x98\x02\x0ebn\xc2\xceh\x02\x0eBN\x82\x8e\xc2\xce(\xa8\x02\x0eBN\x82\x8e\xc2\xce'[i*(i-1)/2+j/3]
a[v/16+j%=3][v%16-j%=2,w=j.id]='*'*w}
puts a}

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

download

return to the top page