Minesweeper by leonid

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

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

download

return top