class Snake::Game
- Snake::Game
- Reference
- Object
Defined in:
snake/game.crConstant 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
- #running?
- #tick(player : Player, input : NCurses::Key)
- #tick(player : Player, input)
- #tick(player : Player)