Minesweeper by inaniwa

s[999];char*p=s,*q;main(i,n){for(read(0,s,s);*p;putchar(*p>45?n+48:*p),p++)for(i=n=0,q=p;*p>45&&i<8;*q==42&&n++)q+="\xEE\x01\x01\x0F\x02\x0F\x01\x01"[i++];}/////////////////////////

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

download

return to the top page