Skip to content

AbdelrahmanDeghedy/2048-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048-Game

2048-image

Description

  • It's a game in which, we combine numbered tiles in order to gain a higher numbered tile. In this game you start with two tiles, the lowest possible number available is two. Then you will play by combining the tiles with the same number to have a tile with the sum of the number on the two tiles.

  • I created it using HTML, SASS, vanilla Javascript.

View the live version of the website from here:

https://2048-game-rho.vercel.app/

Installation

git clone https://github.com/AbdelrahmanDeghedy/2048-Game.git
cd 2048-game
npm install

Open index.html

Usage

The rules of this game is simple:

1- Move the cells, and the cells with the same number will be merged, and the number in the merged cell, is the sum of both two numbers.

2- The score is the sum of numbers in all cells.

3- The game is over, when all the cells are filled, and you have no move left.

You can play either using the mouse or using the four arrows on the keyboard.

License

This project is under the MIT License.