Minesweeper by inaniwa(2hrs)

a;char*P=&a;I;N;main(){for(read(0,P,P);P+="\xee\x01\x01\x0f\x02\x0f\x01\x01\xee"[I++],I%9||(I=N=!putchar(*P>45?N+48:*P),*++P);N+=*P==42);}

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

download

return to the top page