cli-snakegame-1.3.0
توضیحات
A simple snake game right in your command line. Just try it, it is fun :)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | cli-snakegame-1.3.0 |
| نام | cli-snakegame |
| نسخه کتابخانه | 1.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Volodymyr Yahello |
| ایمیل نویسنده | vyahello@gmail.com |
| آدرس صفحه اصلی | https://github.com/vyahello/snakegame-cli |
| آدرس اینترنتی | https://pypi.org/project/cli-snakegame/ |
| مجوز | - |
[](https://www.python.org/)
[](https://app.travis-ci.com/github/vyahello/snakegame-cli)
[](https://img.shields.io/badge/coverage-56%25-orange)
[](https://www.elegantobjects.org)
[](LICENSE.md)
[](https://pypi.python.org/pypi/cli-snakegame/)
[](https://pypi.python.org/pypi/cli-snakegame)
[](https://pepy.tech/project/cli-snakegame)
[](https://pypi.python.org/pypi/cli-snakegame/)
[](https://hub.docker.com/repository/docker/vyahello/cli-snakegame)
# Terminal snake game
> A simple snake game right in your terminal using python built-in **curses** package.
## Tools/features
### Production
- python 3.4, 3.5, 3.6, 3.7, 3.8
- [curses](https://docs.python.org/3/library/curses.html)
- OS compatibility
- Linux
- Mac
- docker
### Development
- [travis CI](https://travis-ci.org/)
- [pytest](https://pypi.org/project/pytest/)
- [mypy](http://mypy.readthedocs.io/en/latest)
- [black](https://black.readthedocs.io/en/stable/)
- [pylint](https://www.pylint.org/)
- [flake8](http://flake8.pycqa.org/en/latest/)
## Usage
Please press **esc** or **cntl+c** to stop the game.
### Docker installation
Please run following script to obtain application from docker hub:
```bash
docker run -it vyahello/cli-snakegame:0.1.0
```
### PYPI installation
Please run following script to obtain latest package from PYPI:
```bash
pip install cli-snakegame
```
Please execute `pysnake` CLI tool from your shell:
```bash
pysnake
```
### Run from source code
Please execute command from the root of your source directory:
```bash
python -m snake
```
## 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:
```bash
./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:
```bash
pytest
```
After please open `test-report.html` file to see detailed testing report
### Release notes
Please refer to [CHANGELOG](CHANGELOG.md) file to get more details
### Meta
Author – Volodymyr Yahello (vyahello@gmail.com).
Distributed under the `GNU` license. See [LICENSE](LICENSE.md) for more information.
You can reach out me at:
* [https://github.com/vyahello](https://github.com/vyahello)
* [https://www.linkedin.com/in/volodymyr-yahello-821746127](https://www.linkedin.com/in/volodymyr-yahello-821746127)
### Contributing
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
نیازمندی
| مقدار | نام |
|---|---|
| ==0.6 | dataclasses |
| ==7.0.0 | click |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.4 | Python |
نحوه نصب
نصب پکیج whl cli-snakegame-1.3.0:
pip install cli-snakegame-1.3.0.whl
نصب پکیج tar.gz cli-snakegame-1.3.0:
pip install cli-snakegame-1.3.0.tar.gz