You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of 4 states to track Birth, Survival, Dying and Death, the cell age holds the same information while keeping the two important states Alive and Dead:
Instead of 4 states to track Birth, Survival, Dying and Death, the cell age holds the same information while keeping the two important states Alive and Dead:
`data Life = Alive Int | Dead Int;
rule (Alive age) 2 = Alive (age + 1)
rule (Alive age) 3 = Alive (age +1)
rule (Alive _) _ = Dead 0
rule (Dead age) 3 = Alive 0
rule (Dead age) _ = Dead (age + 1)`
The text was updated successfully, but these errors were encountered: