This is a simple implementation of the popular 2048 game built using HTML, CSS, and JavaScript.
You can play the game here.
The rules of the game are simple:
- Use the arrow keys on your keyboard to move the tiles in the desired direction.
- When two tiles with the same number touch, they merge into one tile with the sum of their numbers.
- The goal is to create a tile with the number 2048.
- Responsive design for playability on various screen sizes.
- Smooth animations for a better user experience.
- Score tracking to keep track of your progress.
To run the game locally on your machine:
- Clone this repository:
git clone https://github.com/sithumsankajith/2048-mini-game.git
- Navigate to the project directory.
- Open
index.html
in your preferred web browser.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/my-feature
). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/my-feature
). - Create a new Pull Request.
This game is inspired by the original 2048 game created by Gabriele Cirulli. The code for this implementation is written by sithum sankajith.
This project is licensed under the MIT License - see the LICENSE file for details.