class Board

Defined in:

life/board.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(previous : Board) #

[View source]
def self.new #

[View source]

Instance Method Detail

def connect_horizontal : Bool #

[View source]
def connect_vertical : Bool #

[View source]
def draw(window) #

[View source]
def generate_random #

[View source]
def get_neighbors(x : Int32, y : Int32) #

x is line and y is the column


[View source]
def height : Int32 #

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

[View source]
def next #

[View source]
def read_from_file #

[View source]
def successor(previous : Board) #

[View source]
def width : Int32 #

[View source]