Skip to content

dtiourine/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple Python implementation of the classic Snake game. The player controls a snake that moves around the screen, eating food to grow longer while avoiding collisions with the walls and itself.

Snake Game Demo

Prerequisites

  • Python 3.6 or higher
  • Pygame library

Installation

  1. Clone the repository

    git clone https://github.com/dtiourine/snake-game.git
    cd snake-game
    
  2. Install dependencies

    pip install pygame
    
  3. Run the game

    python snake.py
    

How to Play

  • Use arrow or WASD keys to control the snake
  • Eat the food to grow longer and increase your score
  • Avoid hitting the walls or yourself
  • Try to achieve the highest score possible!

About

A classic Snake game built with Python where you control a snake, eat food, and grow longer without hitting the walls or yourself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages