class Life

Defined in:

game_of_life.cr

Constant Summary

DIR = [{0, 1}, {1, 0}, {0, -1}, {-1, 0}, {1, 1}, {1, -1}, {-1, 1}, {-1, -1}]

Constructors

Instance Method Summary

Constructor Detail

def self.new(h : Int32, w : Int32) #

[View source]

Instance Method Detail

def [](*args, **options) #

[View source]
def [](*args, **options, &) #

[View source]
def g : Array(Array(Bool)) #

[View source]
def h : Int32 #

[View source]
def neighbour(y, x) #

[View source]
def nex! #

[View source]
def outside?(y, x) #

[View source]
def seed! #

[View source]
def w : Int32 #

[View source]