Minesweeper by henkma

main=interact$f.zip[0..]
f l=[last$min[c]$show$sum[9|(y,'*')<-l,elem(abs$x-y)$1:[16..18]]-90|(x,c)<-l]

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

download

return to the top page