Skip to content

A C++ implementation of Classic Moblie game 2048 with a variable size board

Notifications You must be signed in to change notification settings

aadishgoel/2048-Game-in-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

2048-Game-in-CPP

The classic game of 2048 was originally made to be played on a board of 4x4 and if you generate a no. equal to 2048 in that then You are considered to be as Winner.
But
In this a game you are also given the flexebility to choose the size of your board. So, your Final Score will be displayed on the END of the Game when you left with no possible moves.

Here is how to use the program:-

Input:

  • A Integer descibing size of the board

Gernally taken from 3, 4, 5

4

then you will get the board to play on

  • Press your move from w, a, s, d

w for swipe up
a for swipe left
s for swipe down
d for swipe right

Output:

In Output You will get your updated board after every move.
And at last Game over message with your score for example.

                 ***** GAME OVER *****
Your Score is: 512

Try it and Enjoy :)

About

A C++ implementation of Classic Moblie game 2048 with a variable size board

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages