This is a simple implementation of the classic 2048 game in C++, developed from scratch using only conditions and for loops. The game is played in the terminal/console, providing a basic yet entertaining experience.
- Command-line-based gameplay.
- Basic graphics using ASCII characters.
- Implemented using only conditions and for loops.
- C++ standard libraries used:
<iostream>,<cstdlib>,<stdlib.h>.
-
Compile the game using a C++ compiler. For example, you can use G++:
g++ main.cpp -o 2048_game
-
Run as compiled executable:
2048_game.exe- Use the arrow keys (Up, Down, Left, Right) to shift the tiles in the desired direction.
- Tiles with the same value will merge when they collide.
- The goal is to reach the 2048 tile.
This project was inspired by the original 2048 game created by Gabriele Cirulli.
Special thanks to Devesh Sharma for their contributions and collaboration on this project. Check out their repository for additional insights and ideas...
