class Game

Defined in:

2048.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def can_move? #

[View source]
def can_move_in?(direction) #

[View source]
def draw #

[View source]
def drawable_grid #

[View source]
def each_cell_with_index(&) #

[View source]
def end_game(msg) #

[View source]
def execute_action(action) #

[View source]
def insert_tile #

[View source]
def lost? #

[View source]
def merge_tiles(direction, drow, dcol) #

[View source]
def movable_tiles(direction, drow, dcol, &) #

[View source]
def offsets_for(direction) #

[View source]
def read_action #

[View source]
def run #

[View source]
def shift_grid(direction) #

[View source]
def shift_tiles_to_empty_cells(direction, drow, dcol) #

[View source]
def to_border?(direction, row, col, drow, dcol) #

[View source]
def won? #

[View source]