A terminal-based snake game
# Ouroboros > A terminal-based game inspired by Snake.
“Snake” is a game that was preloaded on Nokia phones in 1997. A single player controls a square, which continually grows as it moves, resembling a snake. The objective of the game is to get the snake to eat items (by running into food objects) without running into the border of the screen, any obstacles, or itself.
## Prerequisites * Ensure you can run Python 3 from the command line. You can check this by running:
` python --version `
If you do not have Python 3 installed, go here: [Download the latest version of Python](https://www.python.org/downloads/)
- Ensure you can run pip from the command line. You can check this by running:
` pip --version `
If you do not have pip installed, go here: [Installing pip with get-pip.py](https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py)
- Ensure pip, setuptools, and wheel are up to date by running:
` python -m pip install --upgrade pip setuptools wheel `
In addition to the above requirements, please install the following curses package for Windows:
` python -m pip install windows-curses `
For more information, you can read the documentation for [windows-curses 2.0](https://pypi.org/project/windows-curses/).
## Install & Run
`sh $ pip3 install open-ouroboros $ ouroboros # Run the game `
Upgrade: `sh $ pip3 install --upgrade open-ouroboros `
Objective: Eat as many apples as you can without running into yourself.
Move: Use the arrow keys on your keyboard to move the snake (that’s you!) into any apples that appear. The goal is to eat as many as you can without running into yourself. With each apple, the snake grows a bit in length.
Pause: Hit the space bar to pause the game, and hit the space bar again to resume.
Exit: Press the Escape key at any time to exit the game.
- Python 3.7
### MVP Our minimum viable product is a functional terminal-based game of Snake. This will be a single player game that can run on Mac OS X.
## Future Work * 2-player mode * AI players * High-score leaderboard
Interested in contributing to this project? We’d love to have you! Please take a moment to review our [guide to contributing](/CONTRIBUTING.md) before getting started.
We welcome developers of any background and skill level. :seedling:
Enter the following command to run unit tests:
` pytest `
## Credits * [Implementing Snake using OOP](https://robertheaton.com/2018/12/02/programming-project-5-snake/)
## Built By
- Mack Cooper - [@mackkcooper](https://github.com/mackkcooper)
- Carissa Allen - [@carissaallen](https://github.com/carissaallen)
All contributors who participate in this project will be recognized here.
## License Distributed under the MIT License. See [LICENSE](/LICENSE) for more information.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size open_ouroboros-0.2.2-py3-none-any.whl (6.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size open-ouroboros-0.2.2.tar.gz (5.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for open_ouroboros-0.2.2-py3-none-any.whl