Skip to main content

CLI Snake game.

Project description

Snake

An interactive CLI Snake game, tested on Python 2.7 and 3.6 Posix environments.

Applications list view

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


Download files

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

Source Distribution

py-snake-0.0.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

py_snake-0.0.2-py2-none-any.whl (13.5 kB view details)

Uploaded Python 2

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

Hashes for py-snake-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3b3df59f82788b9d98a610df698a6286981847946fd8cfa4141e4f3924980fec
MD5 df3c3788fbc5f5659f1d0b982e4b330c
BLAKE2b-256 810d39172ec6c0887252c86ddf581d17d73b433bd140ed6236fe26f84e00cd71

See more details on using hashes here.

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

Hashes for py_snake-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 5ad7b0c47b646542f840fff89008508847556f7004e8f83820adb385d68c3202
MD5 144d1a278898cadaec40611bacb448b1
BLAKE2b-256 897287e58889cf0adfd53842e8014be1ebe0dfa6a55d85fa2084f5edbd803e87

See more details on using hashes here.

Supported by

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