/Snake-game

Snake game made using pygame python library

Primary LanguagePythonMIT LicenseMIT

Snake Game - Group 2 | CIT

This is a simple snake game created in Python using the pygame library.

Features

  • 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.

Requirements

  • Python 3.6 and above
  • pygame

Installation

  • 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

Usage

  • Run the game by typing the following command in the terminal:
python3 snake.py

Group Members

  • Charles Green
  • Agaba Sabiiti Michael
  • kisembo Tony
  • Vernon M Walker
  • Gavin Ngabonziza
  • Sheila Mirembe
  • Tumuhirwe Iden

License

  • This project is licensed under the MIT license.