https://github.com/muneeb1030/2048-game-cpp
A captivating and strategic number puzzle game developed using SFML and C++, challenging players to merge tiles and reach the 2048 tile.
https://github.com/muneeb1030/2048-game-cpp
2048 2048-game cplusplus cpp semester-1 semester-project
Last synced: 12 months ago
JSON representation
A captivating and strategic number puzzle game developed using SFML and C++, challenging players to merge tiles and reach the 2048 tile.
- Host: GitHub
- URL: https://github.com/muneeb1030/2048-game-cpp
- Owner: Muneeb1030
- Created: 2023-06-23T11:24:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T15:30:12.000Z (almost 2 years ago)
- Last Synced: 2025-03-01T00:12:50.265Z (over 1 year ago)
- Topics: 2048, 2048-game, cplusplus, cpp, semester-1, semester-project
- Language: C++
- Homepage:
- Size: 650 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# 2048 Game Project
## Overview
The 2048 Game Project is a captivating and strategic number puzzle game developed using C++. This project offers a harmonious blend of logic and chance, challenging players to reach the illustrious number 2048 by merging tiles on a grid.
## Key Features
- **Main Menu:** A user-friendly interface where players begin their journey.
- **Game Play:** Engaging gameplay where players swipe tiles to merge them and achieve the 2048 tile.
- **Instructions:** Comprehensive guidelines to help players understand the game mechanics and strategies.
- **High Scores:** A feature that tracks and displays top scores, encouraging competitive play.
- **Exit:** A graceful exit option that allows players to end their game session.
## Requirements
- C++ compiler
## Getting Started
Clone the Repository:
```bash
https://github.com/Muneeb1030/2048-Game-Cpp.git
```
## Build the Project:
Navigate to the project directory and build the project using your preferred C++ compiler.
```bash
cd 2048-Game-Project
mkdir build
cd build
cmake ..
make
```
## Run the Game:
```bash
./2048Game
```
## Game Modules
- **Main Menu**
The Main Menu serves as the starting point of the game, where players can begin a new game, view high scores, read instructions, or exit the game.
- **Game Play**
The core of the 2048 Game Project involves merging tiles by swiping in four directions. When two tiles with the same number collide, they merge into one tile with their combined value. The objective is to reach the 2048 tile.
- **Instructions**
The Instructions module provides detailed guidance on how to play the game, including tips and strategies to achieve higher scores.
- **High Scores**
The High Scores module displays a list of top scores achieved by players, encouraging them to beat their own or others' records.
- **Exit**
The Exit option allows players to quit the game gracefully, saving their progress and high scores.
## Customization
Feel free to customize the game by modifying the source code. You can enhance features, improve the UI, or add new functionalities as per your preference.
## GitHub Repository
Explore, contribute, and stay updated on the GitHub repository.
## Author
- **Muhammad Muneeb ur Rehman**
Feel free to fork, contribute, and enhance the capabilities of this 2048 game. Happy gaming! 🎮🧩