Skip to content

🕹️ Terminal game | A minimal clone of famous 2048 game

License

Notifications You must be signed in to change notification settings

Ehsan-Habibagahi/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048 (Terminal game📟)

Introduction

2048 is a famous game which you can use your arrow keys or A S D W to move the tiles. Tiles with the same number merge into one when they touch. Add them up to reach 2048!

This project is a minimal clone of the popular 2048 game🕹️, designed to run in the terminal (standard output) using C++. It features graphics implemented with Unicode (UTF-8) and ASCII characters. The primary goal of this project was to faithfully implement all the features of the original game without sacrificing program speed and functionality.

2024-07-31+16-40-54_out (1)

Aditional features

  • Leaderboard
  • In-game music
  • Custom dimention

Instructions

Compilation

Simply run this command in terminal:

c++ .\main.cpp .\leaderboard.cpp .\menu.cpp .\header.h -lwinmm

Make sure you have C++ compiler installed🤨

Data storage

All the player's data(moves/score) are stored in data/leaderboard.csv in csv format.

Screenshot 2024-07-31 160509

Contributing

We appreciate any contributions to this project🌻! Whether you want to fix a bug, add a new feature, or improve the documentation, your help is valuable. you can get involved via forking this repository and make a pull request or just make an issue. Thank you so much!💛

Credits

About

🕹️ Terminal game | A minimal clone of famous 2048 game

Topics

Resources

License

Stars

Watchers

Forks

Languages