Inspiration
The inspiration for this project came from the classic 2048 game. I wanted to recreate this popular game using Python and Pygame, allowing me to learn more about game development and improve my programming skills.
What it does This project is a recreation of the 2048 game. The player can use the arrow keys to move the tiles. When two tiles with the same number touch, they merge into one, doubling the number. The game continues until there are no valid moves left. The goal is to create a tile with the number 2048.
How it was built
We built this game using Python and Pygame. Pygame is a set of Python modules designed for writing video games. It provides functionalities such as drawing shapes and text on the screen, handling input events, and managing time and the display window. I used the numpy library to handle the game grid as a 2D array.
Challenges ran into
One of the main challenges i faced was implementing the game logic, specifically the merging and moving of tiles. I had to ensure that the tiles moved correctly and merged only when they were supposed to. Debugging this part of the code was quite challenging.
Accomplishments that i am proud of
I are proud of successfully recreating the 2048 game. It was satisfying to see the game working as expected after overcoming the challenges we faced during development. We are also proud of the clean and readable code we wrote, which will make it easier for others to understand and learn from our project.
What I learned Through this project, we learned a lot about game development, specifically how to use Pygame to create a game. I also improved my problem-solving skills, as we had to think critically to implement the game logic correctly.
What's next for 2048 In the future, I plan to add more features to the game, such as a leaderboard to track high scores. I also want to improve the game's user interface to make it more visually appealing.

Log in or sign up for Devpost to join the conversation.