board-class: A Reference Class to represent the Board of a game

Description Fields Methods

Description

A Reference Class to represent the Board of a game

Fields

matrix

structure that supports basic vector indexing to store states of cells

shrink_counter

counts how many steps passed since the last time the board was shrinked

Methods

applyRule(rule)

Applies given rule to the boards matrix

plotBoard()

Plots board matrix


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