Skip to content

Instantly share code, notes, and snippets.

@ejcer
Last active August 29, 2015 14:21
Show Gist options
  • Save ejcer/f3b00a796c62195f6bdc to your computer and use it in GitHub Desktop.
Save ejcer/f3b00a796c62195f6bdc to your computer and use it in GitHub Desktop.
given initial state as:
5 4
.X..
...X
X.X.
....
.XX.
5 3
1 1
I get 3 of the same initial neighbor changes:
.X..
...X
X.X.
..X.
.XXX
.X..
...X
X.X.
..X.
.XXX
.X..
...X
X.X.
..X.
.XXX
even though it should look something like this:
.X..
...X
X.X.
....
.XX.
.X..
...X
X.X.
....
.XXX
.X..
...X
X.X.
..X.
.XX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment