Skip to content
/ 2048 Public

ReactJS implementation of the game 2048, move and merge same tiles to add up to 2048 to win

Notifications You must be signed in to change notification settings

minh100/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

View the website here

https://minh100.github.io/2048/

2048

Play the game, 2048

Features

  • Move tiles using arrow keys
  • Updates UI after movement
    • Board
    • Score
    • Win or Lose

Installation

Clone this repo and run the following commands
This will install the module to see the app's dependencies:

npm install

The missing dependencies will automatically be updated/ installed or you can manually update/ install it

Running app locally

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Github pages

Use this link for reference
Basically use the following command to deploy to GitHub Pages:

npm run deploy

Having multiple pages may cause an issue where redirecting or refreshing the page would cause crashes. Use the following link as a reference in order to fix this problem; You only have to do the basic

https://github.com/rafgraph/spa-github-pages

About

ReactJS implementation of the game 2048, move and merge same tiles to add up to 2048 to win

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published