Welcome to the 2048 Game project! This is a web-based implementation of the popular 2048 puzzle game using HTML, CSS, and JavaScript. Test your strategic skills and challenge yourself to reach the elusive 2048 tile!
Check out the live demo of the 2048 Game here.
- Clean and responsive user interface.
- Swipe or arrow key controls for an intuitive gaming experience.
- Win and lose scenarios with appropriate messages.
- The ability to restart the game.
To run the 2048 Game locally, follow these steps:
- Clone the repository to your local machine.
git clone https://github.com/asianchun/2048.git
- Open the "index.html" file in your preferred web browser.
- That's it! You're ready to play the 2048 Game.
- Open the game in your web browser.
- Use the arrow keys to control where the tiles move.
- Keep doing that until you win or lose.
- You can always start a new game, if you wish to do so.
Feel free to customize the game to suit your preferences. Here are a few ideas:
- Add more tiles after 2048. You can do that by adding extra values in the "progression" and "numericProgression" arrays. You can find them in "index.js"
- Modify the styling of the app and the tiles in "styles.css"
If you have any suggestions, improvements, or bug fixes, feel free to open an issue or create a pull request. Your contributions are highly welcome!