Skip to content

Erkesto/2048-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

2048 Game in C++ - Using Conditions and For Loops

image

Description

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.

Features

  • Command-line-based gameplay.
  • Basic graphics using ASCII characters.
  • Implemented using only conditions and for loops.
  • C++ standard libraries used: <iostream>, <cstdlib>, <stdlib.h>.

How to Play

  1. Compile the game using a C++ compiler. For example, you can use G++:

    g++ main.cpp -o 2048_game 
  2. Run as compiled executable:

  2048_game.exe
  1. Use the arrow keys (Up, Down, Left, Right) to shift the tiles in the desired direction.
  2. Tiles with the same value will merge when they collide.
  3. The goal is to reach the 2048 tile.

Acknowledgments

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...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages