module Screen

Defined in:

2048.cr
superpower.cr

Constant Summary

TILES = {0 => {:white, nil}, 2 => {:black, :white}, 4 => {:blue, :white}, 8 => {:black, :yellow}, 16 => {:white, :red}, 32 => {:black, :red}, 64 => {:white, :magenta}, 128 => {:red, :yellow}, 256 => {:magenta, :yellow}, 512 => {:white, :yellow}, 1024 => {:white, :yellow}, 2048 => {:white, :yellow}, 4096 => {:white, :black}, 8192 => {:white, :black}, 16384 => {:white, :black}, 32768 => {:white, :black}, 65536 => {:white, :black}}

Class Method Summary

Class Method Detail

def self.clear #

[View source]
def self.colorize_for(tile, &) #

[View source]
def self.read_keypress #

[View source]
def self.readkeypress #

[View source]