A Python implementation of the classic 2048 sliding tile puzzle game using Pygame.
This project recreates the popular 2048 game where players combine numbered tiles to reach the 2048 tile. The game features smooth tile sliding animations, color-coded tiles, and a clean grid layout.
- 4x4 grid with tiles sliding in all four directions (up, down, left, right)
- Tile merging mechanics based on 2048 game rules
- Color-coded tiles for easy visual recognition of values
- Smooth animations for tile movement
- Simple and intuitive controls using keyboard arrows
- Pygame window with a neat UI
- Python 3.x
- Pygame library
Install Pygame with:
pip install pygame
- Clone the repo: git clone https://github.com/Travantiv2/2048.git
- Go into the folder: 2048 game
- Run the game: python main.py
- Use arrow keys to move tiles up/down/left/right
- Try to combine tiles to get the 2048 tile!
- Add score counter
- Undo moves feature
- Sound effects and animations
- Different grid sizes
- Start and game-over screens
Feel free to fork and send pull requests with improvements!
MIT License — free to use and modify
Travanti Lipson Jr — [email protected] GitHub: https://github.com/Travantiv2