minesweeper by chocobi

char*p,a[999];i,x,y,w=42;main(c){for(p=a+1;gets(p+=w););for(c=w;++c<900;*p=*p==46&&i?i+48:*p)for(p=a+c,i=-(*p==w),y=-43;y<w;y+=w)for(x=0;x<3;)i+=*(p+y+x++)==w;for(p=a+1;*(p+=w);)puts(p);}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page