Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:jexp/GameOfLife
Browse files Browse the repository at this point in the history
  • Loading branch information
jexp committed Mar 30, 2010
2 parents b94a124 + 6e7e6bb commit dcf4f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -2,7 +2,7 @@ After reading a ugly and simplistic GOL implementation in IOKE (which Ola was su

The first idea is to have a lazy infinite sequence of boards with a next function taking a board and transforming it to the next iteration.

Second idea: represent a bord not as a two dimensional structure but as a list with [x,y] tuples. During the iteration just check the 8 neighbours and the cell to create a lifeness condition on which to filter the current board list. The condition is: living count is 3/9 or cell is alive and living count is 4/9.
Second idea: represent a bord not as a two dimensional structure but as a list with [x,y] tuples. During the iteration just check the 8 neighbours and the cell to create a liveness condition on which to filter the current board list. The condition is: living count is 3/9 or cell is alive and living count is 4/9.

So its just filtering the current board through the liveness filter.

Expand Down

0 comments on commit dcf4f8f

Please sign in to comment.