Skip to content

eric-mahasi/snake

Repository files navigation

Snake

Snake is a common video game where the player maneuvers a line which grows in length, with the line itself being a primary obstacle. The player controls a square and as it moves forward, it leaves behind a trail, resembling a moving snake. The player attempts to eat items by running into them with the head of the snake. Each item eaten makes the snake longer so controlling it is progressively more difficult.

Getting Started

To get a copy of this game onto your local machine, simply click the clone button at the top of the page and follow the prompts thereafter.

Prerequisites

This game requires Python to be installed for it to run. To install Python, click here.

Usage

From a terminal, navigate into the project directory.

$ cd snake/src

To run the game:

$ python snake.py

The arrow keys on the keyboard are then used to control the snake.

Contributing

Please read HOW_TO_CONTRIBUTE.md for details on submitting pull requests.

License

This project is licensed under the MIT license - see the LICENCE.md for details.

Acknowledgements

This project was inspired by Jody LeCompte's amazing tutorial which can be found here.

About

The popular game "Snake" created using PyGame.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages