This is my implementation of 2048 (Click to play original), that was made in C++ using SFML library
First you need C++17 compliant compiler and CMake build system
-
Clone this repository to your PC:
git clone https://github.com/k-o-white/2048_SFML.git
cd 2048_SFML
-
Create folder for building app and go to it:
mkdir build
cd build
-
Input commands:
cmake -G "MinGW Makefiles" ..
mingw32-make
-
Run 2048_SFML.exe:
start 2048_SFML.exe
- Arrow keys or WASD - moving tiles
- Space - restart
- Y - continue/restart, if you achieved 2048/lost
- N - quit game, if you achieved 2048 or lost