This is a web version 2048 game which was developed by ReactJS, Sass, Webpack and librariles that support keyboard and swipe controls.
- Random 2 tiles with random number 2 or 4.
- Random a new tile with value 2 or 4 after each moving.
- Moving tiles by keyboard arrow key input or swipe operation.
- Merging tiles when two same value tiles collide.
- Applying color schema for tiles with different values.
- Showing animation when a new tile appears or tiles merge.
- Displaying message when game is over or game is win.
- Could keep going when game is win or restart when game is over.
- Responsive design for small screen.
- Added localstorage to preserve data when refreshing page.
- Added Jest unit test for functions.
- Using Webpack to bundle files.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:8000 to view it in the browser.
Builds the app for production to the dist
folder.
Launches the test runner in the interactive watch mode.
Output css file.