A web-based implementation of the popular 2048 game, built with Next.js.
Check out the live demo: 2048 Game
- Classic 2048 gameplay
- Smooth animations and responsive design
- Keyboard and swipe gestures support
- Score tracking
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/salimzeeshan/2048.git cd 2048-game
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
.
- Use the arrow keys or WASD keys or arrow keys to move the tiles.
- Combine tiles with the same number to merge them into a higher number.
- Swipe gestures are supported on touch devices.
Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Make your changes
- Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Open a pull request
Developed by Mohammad Zeeshan Salim