NAME

snake - the classic snake game, in a terminal or a window

SYNOPSIS

snake                      # play, the board fitted to the window
snake --cols 20 --rows 14  # a smaller board
snake --watch --level 3    # watch the bot
snake --raylib             # a window, when Raylib::FFI is installed
snake --help

DESCRIPTION

Steer with the arrows, wasd or hjkl; p pauses; q quits. The snake grows by one for each piece of food and speeds up as the score doubles. It dies at a wall or on its own body.

The keys need Term::ReadKey. Without it the game says so and exits 2; --watch works anywhere.

EXIT STATUS

0 when a game ended or was quit; 2 for a bad option, or a game that could not start.

SEE ALSO

Game::Snake::Terminal, which this program is two lines over.

AUTHOR

LNATION, <email at lnation.org>

LICENSE AND COPYRIGHT

This software is Copyright (c) 2024 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)