Minesweeper by rst76

main=interact$f.zip[0..]
f s=[head$[x..'*']++show(sum[1|(j,'*')<-s,elem(abs$i-j)$1:[16..18]])|(i,x)<-s]

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

download

return to the top page