Minesweeper by comfuture

import os;i=os.read(0,271);p=lambda p:0<=p<271 and i[p]=='*';print ''.join([i[n]=='.' and str(p(n-1)+p(n+1)+p(n-17)+p(n+17)+p(n-18)+p(n-16)+p(n+16)+p(n+18)) or i[n] for n in range(0,271)])\x0d

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

download

return to the top page