Snake
Command-line version of the classic Snake game.
Installation
Install as usual:
pip install ruben-snake-cmd
You may wish to create a virtual environment beforehand.
Installation on Windows
The game requires the curses library. This should already be installed on Linux and macOS so no additional steps are required. However, it is not included in the Windows version of Python, as noted in the curses documentation. On Windows, you can install the windows-curses package (see this comment), using pip install windows-curses.
Usage
Run the game using the following command:
ruben-snake-cmd
Note that I've only tested this on Linux.
The application should generally be self-explanatory.
One thing to note is the settings screen, reached by pressing S on the title screen. Currently, the only option is to enable/disable the snake wrapping around the edge of the window by pressing B. If disabled, the snake will "die" on reaching the edge of the window.
There is also a controls screen, reached by pressing C on the title screen.
In-Game Controls
| Key(s) | Action |
|---|---|
| ←, ↑, →, ↓ | Change direction |
| Q | End game |
Note that these only apply in-game and not on other screens, such as the title screen or settings screen.
Metadata
Release files for ruben-snake-cmd 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ruben-snake-cmd-0.3.0.tar.gz | 17.4 kB | Without provenance | Details for ruben-snake-cmd-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ruben_snake_cmd-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for ruben_snake_cmd-0.3.0-py3-none-any.whl |
Total release size: 35.1 kB
Release files / ruben-snake-cmd-0.3.0.tar.gz
| Download URL | ruben-snake-cmd-0.3.0.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0603680800ce096cde56be118b3d360c75b18e953b8047d687c73b548725f247
|
|
BLAKE2b-256 checksum How to use checksums |
2112e89b20b1b6a5eac367110b662b0b05da48553b9893550c6ae0dbd71bbdf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / ruben_snake_cmd-0.3.0-py3-none-any.whl
| Download URL | ruben_snake_cmd-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5c6bdef270563fffb778bb39d7f8c9b68eb53c5c8620c08c61e6815ea16d76e
|
|
BLAKE2b-256 checksum How to use checksums |
0d0367e9baa7fd3ad1e5b60854d048f8c82a503df2611ef2aa17f4872985e032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for ruben-snake-cmd 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.