from 2021/10 to 2021/10 Download
  • C++
  • QT

2048 Game

A desktop implementation of the popular 2048 puzzle game, built using C++ and the Qt Framework for the GUI. This project aims to replicate the classic experience of the original 2048 while exploring modern C++ development practices and cross-platform UI design with Qt.


đŸ•šī¸ About the Game

2048 is a sliding tile puzzle where the objective is to combine like-numbered tiles to create the tile 2048. Players use arrow keys to shift all tiles in one direction per move. When two tiles with the same number collide, they merge into one with double the value.

This version stays faithful to the original rules and adds a clean, responsive desktop interface.


📜 Project History

This project began as a personal learning exercise to deepen familiarity with the Qt framework and modern C++ . The idea was inspired by the viral success of the original 2048 web game created by Gabriele Cirulli in 2014.

Development goals included:

  • Learning Qt Widgets and layout systems.
  • Implementing grid-based logic and animation in Qt.
  • Exploring event handling in Qt.
  • Signals and slots
  • Event handling and key press management

After building a basic prototype with a functional grid, merging logic, and keyboard input, the project evolved into a polished standalone application with a minimalist UI and modular code structure.


🧰 Features

  • Playable 4x4 2048 grid with tile merging logic
  • Clean and responsive UI using Qt Widgets
  • Smooth animations using Qt's animation framework
  • Custom tile colors based on value
  • High score tracking (optional feature)
  • Game Over and Victory detection
  • Keyboard controls (Arrow keys or WASD)
  • Responsive, resizable window
  • Clean and modular codebase for easy extension

📷 Screenshots

2048 Game 2048 Game


đŸ› ī¸ Technologies Used

  • C++ (C++11 or later)
  • Qt 5 / Qt 6 (Widgets module)

🙌 Acknowledgments

  • Original game concept by Gabriele Cirulli
  • Qt documentation and community examples