Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

Description

This is a simple implementation of the classic Snake game. The objective of the game is to control the snake and eat as much food as possible without colliding with the walls or the snake's own body.

Features

  • Snake movement controlled by arrow keys
  • Randomly generated food for the snake to eat
  • Score tracking
  • Game over when the snake collides with the walls or its own body

Installation

  1. Clone the repository: git clone https://github.com/beamishc/snake.git
  2. Navigate to the project directory: cd snake
  3. Install the requirements: pip install -r requirements.txt

Usage

  1. Start the game: python start.py
  2. Use the arrow keys to control the snake's movement
  3. Try to eat as much food as possible without colliding with the walls or the snake's own body
  4. Press Ctrl + C to exit the game

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

snake

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages