/2048

A simple React app to play 2048 game.

Primary LanguageJavaScript

2048 React App

A 2048 game application made with React.

                    

How to play:

Levelskip: 2048 is a game where you 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. A lot of strategies have been devised in order to obtain the 2048 and be a winner in this game. But others have strived for a greater height. Which is a score beyond 2048. Read more here.
To combine the tiles, you can use the keyboard's arrows or use the arrows displayed on screen.

Requirements:

To run this project you'll need:

  1. NodeJs (Recommended: v14.16.0)
  2. Yarn (Recommended: v1.22.10)
  3. ReactJs (Recommended: v17.0.2)

How to run this project:

In the 2048 directory, run de command line:

yarn start

Then the project will open on: http://localhost:3000

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Further improvements:

  1. Add highest scores component

Credits:

Please take a look in those amazing jobs :)

  1. Youtube tutorial
  2. Original logic code, please star this repo 🌟
  3. Gifs images