Skip to content

Instantly share code, notes, and snippets.

View olefriis's full-sized avatar
🇺🇦

Ole Friis Østergaard olefriis

🇺🇦
View GitHub Profile
@olefriis
olefriis / gist:2776707
Created May 23, 2012 18:01
Programming with the Stars: Mark Seeman
let input = "**..
....
.*..
...."
let compute (board : string) =
let board = board.Split([| "\n" |], System.StringSplitOptions.RemoveEmptyEntries)
let count (x, y) =
[-1, -1; 0, -1; 1, -1;