CLI Snake game.
Project description
Snake
An interactive CLI Snake game, tested on Python 2.7 and 3.6 Posix environments.
Installation
Install from PyPi using pip, a package manager for Python.
pip install py-snake
Or clone the repo and install using setuptools.
cd path/to/repo
python setup.py develop
Usage
Start a new game by running snake from from command line. Optionally pass --help flag for more info.
$ snake --help
usage: snake [-h] [--width WIDTH] [--height HEIGHT] [--speed SPEED]
[--food FOOD]
Snake game for CLI
optional arguments:
-h, --help show this help message and exit
--width WIDTH Frame width
--height HEIGHT Frame height
--speed SPEED Snake speed (fps)
--food FOOD Number of food pieces available
Uninstallation
Uninstall Snake completely using pip.
pip uninstall py-snake
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-snake-0.0.2.tar.gz.
File metadata
- Download URL: py-snake-0.0.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b3df59f82788b9d98a610df698a6286981847946fd8cfa4141e4f3924980fec
|
|
| MD5 |
df3c3788fbc5f5659f1d0b982e4b330c
|
|
| BLAKE2b-256 |
810d39172ec6c0887252c86ddf581d17d73b433bd140ed6236fe26f84e00cd71
|
File details
Details for the file py_snake-0.0.2-py2-none-any.whl.
File metadata
- Download URL: py_snake-0.0.2-py2-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ad7b0c47b646542f840fff89008508847556f7004e8f83820adb385d68c3202
|
|
| MD5 |
144d1a278898cadaec40611bacb448b1
|
|
| BLAKE2b-256 |
897287e58889cf0adfd53842e8014be1ebe0dfa6a55d85fa2084f5edbd803e87
|