class

CrystalBrain::Brain

Inherits Reference < Object

Constructors

new(name : String, x_size : Int32, y_size : Int32)
Source

Instance methods

count_live_neighbors(x_in, y_in)
Source
name
Source
name=(name : String)
Source
random_population
Source
simple_print

for printing to console - don't call as API unless you want to clear the screen and print the board.

Source
tick
Source
x_size
Source
x_size=(x_size : Int32)
Source
y_size
Source
y_size=(y_size : Int32)
Source