class Snake::Game

Defined in:

snake/game.cr

Constant Summary

DIRECTION_MAPPRINGS = {NCurses::Key::Up => Player::Directions::Up, NCurses::Key::Down => Player::Directions::Down, NCurses::Key::Right => Player::Directions::Right, NCurses::Key::Left => Player::Directions::Left}

Constructors

Instance Method Summary

Constructor Detail

def self.new(world : World) #

[View source]

Instance Method Detail

def running? #

[View source]
def tick(player : Player, input : NCurses::Key) #

[View source]
def tick(player : Player, input) #

[View source]
def tick(player : Player) #

[View source]