This repository contains a Python implementation of the classic 2048 game using the Pygame library. The objective of the game is to slide numbered tiles on a grid to combine them and create a tile with the number 2048.
- Classic 2048 gameplay
- Colorful and intuitive interface
- Smooth animations
- Support for keyboard controls
-
Clone the repository to your local machine:
git clone https://github.com/MahdiKheireddine/2048-Game
-
Install the required dependencies using pip:
pip install -r requirements.txt
-
Run the game by executing the following command:
python main.py
-
Use the arrow keys to move the tiles in the desired direction.
-
Tiles with the same number will merge when they collide.
-
Continue merging tiles to reach the 2048 tile and win the game!
- Use the arrow keys (Up, Down, Left, Right) to move the tiles in the corresponding direction.
- Add scoring system to track player scores.
- Implement a leaderboard feature to display high scores.
- Add options for customizing game settings (board size, winning tile number, etc.).
Contributions are welcome! If you would like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License.