class IGOL::GameOfLife
- IGOL::GameOfLife
- Reference
- Object
Overview
Represents a mutable GoL grid
Defined in:
igol/state.crConstant Summary
-
OriginSquare =
[{-1, 1}, {0, 1}, {1, 1}, {-1, 0}, {0, 0}, {1, 0}, {-1, -1}, {0, -1}, {1, -1}]
Constructors
Class Method Summary
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #[](idx)
- #add(cells : Set(Point))
- #copy(population = @population) : GameOfLife
- #draw(x_range = -4..4, y_range = -4..4)
- #evolve(iterations = 1)
-
#hash(hasher)
See
Object#hash(hasher)
- #population : Set({Int32, Int32})
- #remove(cells : Set(Point))
- #to_named_tuple
- #to_s(io)
- #to_tuple
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.