Skip to main content

A simple snake game right in your command line. Just try it, it is fun :)

Project description

made-with-python GitHub version Build Status Coverage Status

Forks Stars GitHub watchers Issues GitHub contributors

EO principles respected here License: GPL-3.0 Hits-of-Code

PyPI version PyPI pyversions

Terminal snake game

A simple snake game right in your terminal using python built-in curses package. Just try it, it is fun :)


  • python 3.4, 3.5, 3.6, 3.7, 3.8
  • curses
  • pytest
  • shell
  • travis CI
  • PYPI distributed


Please run following script to obtain latest package from PYPI:

➜ pip install cli-snakegame

Then please execute instructions below to launch game from your environment:

from import SnakeGame

game = SnakeGame()

Development notes

Run code analysis

In general static code analysis consists of following tools: black, flake8, pylint, mypy and unittests accordingly. To be able to start static code analysis locally please run following script from the root directory of the project:

➜ ./ install-dependencies

Anyway, this script is triggered via Travis CI.

Run unittests

Also you can run unittests separately. Please run script from the root directory of the project:

➜ pytest

After please open test-report.html file to see detailed testing report

Release notes

  • 1.1.1
    • Add link to curses package in readme
  • 1.1.0
    • Support python >=3.4 version
    • Support python >=3.5 version
  • 1.0.1
    • Polish documentation
  • 1.0.0
    • Introduce PYPI package
  • 0.2.0
    • Add navigation options
  • 0.1.0
    • Introduce initial app version


Author – Volodymyr Yahello

Distributed under the GNU license. See LICENSE for more information.

You can reach out me at:


  1. clone the repository
  2. configure Git for the first time after cloning with your name and email
  3. pip install -r requirements.txt to install all project dependencies
  4. pip install -r requirements-dev.txt to install all project development dependencies

Project details

Download files

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

Files for cli-snakegame, version 1.1.1
Filename, size File type Python version Upload date Hashes
Filename, size cli_snakegame-1.1.1-py3-none-any.whl (23.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size cli-snakegame-1.1.1.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page