Skip to content

Instantly share code, notes, and snippets.

@reflash
Created August 28, 2018 06:09
Show Gist options
  • Save reflash/63f4500e0628eb1a622163b77176654c to your computer and use it in GitHub Desktop.
Save reflash/63f4500e0628eb1a622163b77176654c to your computer and use it in GitHub Desktop.
static member Step(states : int [][]) : int[][] =
[| for x in 0..states.Length - 1 do
yield [| for y in 0..states.[0].Length - 1 do
match Game.NeighborsAt(x,y,states) with
| 3 -> yield 1
| 2 -> yield states.[x].[y]
| _ -> yield 0
|]
|]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment