IGOL::GameOfLife
Represents a mutable GoL grid
Constants
OriginSquare = [{-1, 1}, {0, 1}, {1, 1}, {-1, 0}, {0, 0}, {1, 0}, {-1, -1}, {0, -1}, {1, -1}]
Constructors
Class methods
random(max_size = 100, x_range = 1..10, y_range = 1..10)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
[](idx)
Sourcecopy(population = @population) : GameOfLife
Sourcedraw(x_range = -4..4, y_range = -4..4)
Sourceevolve(iterations = 1)
Sourcehash(hasher)
See Object#hash(hasher)
population
to_named_tuple
Sourceto_s(io)
Sourceto_tuple
SourceMacros
[]=(population_pattern, rhs)
Source