Skip to main content

# Ouroboros > A terminal-based game inspired by Snake.

[![Build Status](https://travis-ci.com/terminal-based-games/ouroboros.svg?branch=master)](https://travis-ci.com/terminal-based-games/ouroboros)

“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 `

Windows:

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 `

## Play

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.

## Demo

![Snake Demo](https://media.giphy.com/media/MdGrSYHxXItqPhXukM/giphy.gif)

## Technology

  • Python 3.7

  • curses

## Roadmap

Deadline | Event | Description |
— | — | — |
07/02/19 | Research | Finalize open source project goal and discuss scope. |
07/06/19 | Design | High-level design, flow charts, and structure for prototype. |
07/09/19 | Demo | Deliver a prototype. |
07/23/19 | Sprint | Develop minimum viable product (“MVP”). |
07/30/19 | Test | Conduct QA and testing. |
08/01/19 | Deploy | Deploy MVP to production. |
08/13/19 | Sprint | Fix bugs, improve UX, polish final product. |

### 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

## Contribute

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:

## Testing

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

All contributors who participate in this project will be recognized here.

## License Distributed under the MIT License. See [LICENSE](/LICENSE) for more information.

Metadata

Release files for open-ouroboros 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for open-ouroboros 0.2.2
File Size Uploaded Provenance Actions
open-ouroboros-0.2.2.tar.gz 5.7 kB Without provenance Details for open-ouroboros-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-ouroboros 0.2.2
File Interpreter ABI Platform Actions
open_ouroboros-0.2.2-py3-none-any.whl Python 3 none any Details for open_ouroboros-0.2.2-py3-none-any.whl

Total release size: 12.6 kB

Release files / open-ouroboros-0.2.2.tar.gz

Download URL open-ouroboros-0.2.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3032b8887f92a0bbc348dc5908d22d5760110391046b0c2c988bcf626ef2bc79
BLAKE2b-256 checksum
How to use checksums
16ca0886bb7f7ac87dcb46804578e4184c42db928cd8a535f9332f5d82a0dd03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release files / open_ouroboros-0.2.2-py3-none-any.whl

Download URL open_ouroboros-0.2.2-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc4681e6a47c43e8fbccbf57c41f7efc4bcb27b6f6a081b2a6324adcce822285
BLAKE2b-256 checksum
How to use checksums
e3881e8f788b527135b317d926b5288887e5a659ca0ee1755089e8adf5c49ff8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Security for open-ouroboros 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page