A Reference Class to represent a rule to be applied to a board
survive
vector of integers that determines which count of neighbors of a livin cell leads to survival
revive
vector of integers that determines which count of neighbors of a dead cell leads to revival
apply(sums, living)
Takes neighborhood sums and indication of living or dead and returns new states
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.