rule-class: A Reference Class to represent a rule to be applied to a...

Description Fields Methods

Description

A Reference Class to represent a rule to be applied to a board

Fields

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

Methods

apply(sums, living)

Takes neighborhood sums and indication of living or dead and returns new states


chrlen/gameOfLifeAgain documentation built on July 9, 2019, 11:42 a.m.