This is a simple snake game created in Python using the pygame library.
- The snake moves in a straight line.
- The snake can turn left or right, up or down but not back on itself.
- The snake can eat the food.
- The snake can die if it hits the wall or itself.
- Save the highscore.
- The snake can be controlled by the arrow keys.
- The game can be paused and resumed.
- Python 3.6 and above
- pygame
- Install Python 3.6 or above
- Install pygame
- Run the following command in the terminal:
python3 -m venv ./venv # Create a virtual environment
source /venv/bin/activate # activate the virtual environment on linux, mac
.\venv\Scripts\activate # activate the virtual environment on windows
pip install -r requirements.txt
- Run the game by typing the following command in the terminal:
python3 snake.py
- Charles Green
- Agaba Sabiiti Michael
- kisembo Tony
- Vernon M Walker
- Gavin Ngabonziza
- Sheila Mirembe
- Tumuhirwe Iden
- This project is licensed under the MIT license.