minesweeper by ludo

for(i in a<-seq(s<-readChar("stdin",!!1:9e3)))s[i][s[i]>-1&0<v]=v=sum(s[a%in%(i+-3:5%/%3+-1:1*41)]=="*")
cat(s,sep="")

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