A simple snake game right in your command line. Just try it, it is fun :)
Project description
Terminal snake game
A simple snake game right in your terminal using python built-in
curses
package.
Tools/features
- python 3.6, 3.7, 3.8
- curses
- pytest
- shell
- travis CI
Usage
Run script from the root directory of the project:
➜ python game.py
Development notes
Install from PYPI
Please run command from the root directory of the project:
➜ pip install cli-snakegame
Then please execute instructions below to run game from your environment:
from snake.game import Game, SnakeGame
game: Game = SnakeGame()
game.name()
game.run()
...
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:
➜ ./analyse-code.sh 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.0.0
- Introduce PYPI package
- 0.2.0
- Add navigation options
- 0.1.0
- Introduce initial app version
Meta
Author – Volodymyr Yahello vyahello@gmail.com
Distributed under the GNU
license. See LICENSE for more information.
You can reach out me at:
Contributing
- clone the repository
- configure Git for the first time after cloning with your
name
andemail
pip install -r requirements.txt
to install all project dependenciespip 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.
Source Distribution
Built Distribution
Hashes for cli_snakegame-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95a5aa9cfaa8757d47f1358cb104892e3df17a1a6b538e2c61cf6a5e27f096b |
|
MD5 | a7b82454177937fa0685adc49908bc61 |
|
BLAKE2b-256 | ad299a6d3d5384be3841d4222454c150ba45089b8490567449b5fc25e7b4fac3 |