Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Pygame Snake Game

Welcome to the Python Pygame Snake Game! Experience the classic Snake game with a modern twist. Navigate your snake, avoid walls, and consume food to grow as long as possible!

Installation

To play the Snake game, you'll need to install Pygame. You can install it using pip:

pip install pygame

Running the Game

Once you have Pygame installed, you can start the game by running the following command in your terminal:

Make sure you're in the correct directory where snake_game.py is located.

How to Play

Use the arrow keys to control the direction of the snake. Avoid running into the walls or the snake's own tail. Eat food to gain points and grow longer.

Prerequisites

Python 3.8 or later pip

Installation

Clone the repository:

  1. Clone the repository: git clone https://github.com/sushantkothari/snake-game-using-python.git
  2. Navigate to project directory
  3. Install the required packages: pip pygame time random

Contributing

Contributions are welcome! If you have any suggestions, bug fixes, or improvements, feel free to create a pull request.

License

This project is open-source and released under the MIT License. You are free to use, modify, and distribute the code, but attribution to the original author is required.

Acknowledgments

A special thank you to the conservationists and researchers who provided the datasets. Hat tip to anyone whose code was used as inspiration.

Contact

For any questions or inquiries, please contact me at [sk619kothari@gmail.com]

About

A classic snake game built with Pygame. Initiate, render, and clean up game elements in a loop for a dynamic experience. Set mode, fill screen, and handle exit events seamlessly.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages