Square Ice by mitchs

t=' '*25
a=map(bytearray,['H O '*7,t,'  H '*7,t]*6)[:21]
x=[-3]*24
for i in range(6):
 j=2;k=-3
 for n in map(int,raw_input().split()):k+=2;x[j]+=2;exec'k+=2;a[i*4][k]=45;'*-~n+'x[j]+=2;a[x[j]][j]=124;'*(1-n);j+=4
for s in a:print s[:25]

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page