
Slide & Merge is a React-based game inspired by the 2048 game. The objective is to slide the numbered tiles on a grid to combine them and create a tile with the number 2048. This game features smooth animations, a dark/light theme toggle, a tutorial, and records your high score!
git clone https://github.com/kraffcho/Slide-and-Merge-Game-aka-2048.git
cd slide-and-merge
npm install
npm start
Open http://localhost:3000 to view it in the browser.
Below are the main functionalities of the application:
You can toggle between light and dark themes.
For first-time players, a tutorial can be displayed.
Restart the game at any point to try and beat your high score!
GameUtils.js: Contains utility functions like board initialization and game-over checks.App.js: Contains the main application logic, UI components, and state management.initializeBoard: Initializes the game board.checkGameOver: Checks if the game is over.placeRandom: Places a random tile on the board.Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
MIT
Enjoy the game!