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.
To play the game, you need to have Python and Pygame installed on your system. Follow the steps below to set up the game:
- install python3 using Homebrew (macOS):
brew install python3
- 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'
- install pygame
pip install pygame
- download the repository: git clone [email protected]:Clayton-Noyes/snake_game.git
To start the game, navigate to the game directory and run the main.py file with Python:
python snake/main.py
Enjoy the game!
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.