/2048

A C++/Qt clone of the popular 2048 game

Primary LanguageC++

2048

A C++/Qt clone of the popular 2048 game.

Game logic is written in C++, the GUI in Qt 5.2.1. The entire GUI is written in code, Qt Creator's UI designer was not used.

The core is decoupled from the GUI using the observer pattern, so it is easy to pull the code, extract the core and then build a new GUI around it.

Screenshot

Alt text

Build instructions

  1. Download and install Qt (https://www.qt.io/download-open-source/)
  2. Open Qt Creator, File > Open File or Project... > Locate ExpGame.pro and select it
  3. Build project
  4. Run

Alternatively, if you want to build outside of Qt Creator, this is possible as long as your system has both qmake and make. In that case, just run qmake && make in the checked out repository.