Skip to content

ashrithareddy39/slither

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game (Python, OOP, Pygame)

A simple Snake game implemented using Python, Object-Oriented Programming, and Pygame.

Requirements

  • Python 3.8+
  • Pygame (see requirements.txt)

Run

  1. Create a virtual environment and install requirements:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Run the game:
python main.py

Project structure

  • snake.py - Snake class
  • food.py - Food class
  • game.py - Game class (main loop, input, update, draw)
  • main.py - entry point

Enjoy!

About

PySnake is a simple Python-based arcade game where players control a snake to eat food and grow longer while avoiding collisions with walls or itself. Built using Pygame, it demonstrates core concepts like loops, event handling, and collision detection in game development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages