Skip to content

Soumelee/Snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game implementation in Python using OpenCV.

Table of Contents

Demo

demo.mp4

Getting Started

  1. Clone this repository.
  2. Install the required libraries: pip install numpy opencv-python.
  3. Run the game: python snake_game.py.

Game Controls

  • Use a to move left.
  • Use d to move right.
  • Use w to move up.
  • Use s to move down.
  • Press Esc to quit the game.

Features

  • Snake movement and collision logic.
  • Apple spawning and scoring system.
  • Game over conditions and score display.

Contributing

Contributions are welcome! To contribute:

  1. Fork this repository.
  2. Create a new branch for your feature: git checkout -b feature-name.
  3. Commit your changes: git commit -m 'Add feature'.
  4. Push to the branch: git push origin feature-name.
  5. Create a pull request.

License

This project is licensed under the MIT License. See LICENSE for details.

Contact Information

You can reach out to me via GitHub: Soumelee
Feel free to connect with me in LinkedIn: Soumili Mondal

About

A classic Snake game implementation in Python using OpenCV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages