Minesweeper by leonid

import os
t=os.read(0,999)
s=(' '*18+t)*2
for x in t:s=s[os.write(1,[x,`(s[:50]*3)[::17].count('*')`]['*'<x]):]

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

download

return to the top page