electronic dice by shinh

#!ruby -n
i='\xb7\xab\xa3\x89"\x08'[-$_.to_i]
a='%09b'%(i*2+i%2&-3)
4.times{|i|puts [*a[i*3,3].chars]*' '}

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

download

return top