A modern twist on the classic Snake game โ built with Python and Pygame.
Created by: mw Date: 09/17/2025 IDE: Visual Studio 2022
Matts OG Snake is a simple yet polished recreation of the classic Snake game made using Python and Pygame. It includes smooth controls, a pause feature, and a persistent leaderboard to track the top scores locally.
๐น๏ธ Classic Snake gameplay
๐พ Persistent leaderboard stored in leaderboard.txt
โธ๏ธ Pause and resume functionality (SPACE key)
๐ Top 3 leaderboard display during pause and game over
๐ค Player initials input upon losing
๐ Option to restart or quit after game over
๐จ Clean, dark-themed visuals
Key Action W / โ Move Up A / โ Move Left S / โ Move Down D / โ Move Right SPACE Pause / Resume ENTER Submit initials (after game over) R Clear leaderboard (when paused) Q Quit the game (after game over) C Restart the game (after game over)
โโโ snake.py # Main game file
โโโ leaderboard.txt # Stores leaderboard data (auto-created)
โโโ README.md # This file
Python Version: 3.8+
pygame
pip install pygame
Clone or download this repository.
Open the folder in Visual Studio 2022 or any Python IDE.
Run the game using:
python snake.py
The snake grows by one block each time it eats food.
The game ends if the snake hits the wall or itself.
After losing, you can enter your initials to save your score.
The leaderboard keeps the top 5 scores, showing the top 3 during gameplay.
This project is open-source and free to use for educational or personal purposes.
Add sound effects and background music
Include difficulty levels or speed progression
Display full leaderboard in a separate screen
Add customizable themes or snake colors