Skip to content

Basic snake game in Python I made while I was bored

Notifications You must be signed in to change notification settings

TheTechChild/snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

This is a classic snake game implemented in Python using the Pygame library. Navigate the snake to eat food and grow as long as possible without hitting the walls or yourself.

Installation

To play the game, you need to have Python and Pygame installed on your system. Follow the steps below to set up the game:

Prerequisites

  1. install python3 using Homebrew (macOS): brew install python3
  2. add these aliases to your zshrc or bashrc to control which version of python you are using while executing commands:
alias python2='python'
alias python='python3'
  1. install pygame pip install pygame
  2. download the repository: git clone [email protected]:Clayton-Noyes/snake_game.git

Running the Game

To start the game, navigate to the game directory and run the main.py file with Python: python snake/main.py

Enjoy the game!

Controls

Use the arrow keys to control the snake's direction. Press 'Q' to quit the game at any time. Press 'C' to continue the game after losing.

About

Basic snake game in Python I made while I was bored

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages