Skip to main content

Play snake game in your terminal.

Project description

snake-game-cli

Play snake game in your terminal.

demo

Installation

pip install snake-game-cli

Usage

play-snake                 # start at Normal difficulty
play-snake -d hard         # or easy / normal / hard

You can also pick the difficulty on the start screen with / , then press Enter to begin.

Controls

Key Action
/ W Move up
/ S Move down
/ A Move left
/ D Move right
P Pause / Resume
Q Quit

On the start screen, / change the difficulty and Enter starts the game.

Features

  • Three difficulty presets (easy / normal / hard), selectable via -d or on the start screen
  • Restarting after game over returns to the difficulty selector, so you can switch presets between runs
  • Snake speeds up as your score increases
  • High score persists across sessions
  • Pressing a direction key triggers an immediate move
  • Terminal resize is handled gracefully

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snake_game_cli-0.3.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snake_game_cli-0.3.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file snake_game_cli-0.3.0.tar.gz.

File metadata

  • Download URL: snake_game_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for snake_game_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6d78d0ab1486967dd7c9751907ebe8d7bd1da8f8d4b6b82ebd4cce2b9fdd4bba
MD5 93b19611c5dfa3273f65ea8b13c77ed9
BLAKE2b-256 cf84f457508ec912985bf82cb88aac15b7d2ea4189e9ce5bac08bb905559794f

See more details on using hashes here.

File details

Details for the file snake_game_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: snake_game_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for snake_game_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0206e45403b00b06436856b572744b632a7d4b1e6bfe0d14417fe767fc5b1180
MD5 1111532c1725c4fa1bbbdceea3449452
BLAKE2b-256 b3b3a0bde9a3f31e6d9b1f74c060084a83e80413893023034b1a5a5b5f1a2264

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page