https://github.com/salimzeeshan/2048
A web-based implementation of the popular 2048 puzzle game, built using Next.js. The objective of the game is to slide numbered tiles on a grid to combine them and create a tile with the number 2048.
https://github.com/salimzeeshan/2048
2048 nextjs vercel
Last synced: about 2 months ago
JSON representation
A web-based implementation of the popular 2048 puzzle game, built using Next.js. The objective of the game is to slide numbered tiles on a grid to combine them and create a tile with the number 2048.
- Host: GitHub
- URL: https://github.com/salimzeeshan/2048
- Owner: salimzeeshan
- Created: 2024-06-20T09:49:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-26T16:48:55.000Z (about 1 year ago)
- Last Synced: 2025-06-09T17:14:23.764Z (about 1 year ago)
- Topics: 2048, nextjs, vercel
- Language: JavaScript
- Homepage: https://2048-pearl.vercel.app
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 2048 Game
A web-based implementation of the popular 2048 game, built with [Next.js](https://nextjs.org/).
## Table of Contents
- [Demo](#demo)
- [Features](#features)
- [Technologies](#technologies)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
## Demo
Check out the live demo: [2048 Game](https://2048-pearl.vercel.app/)

## Features
- Classic 2048 gameplay
- Smooth animations and responsive design
- Keyboard and swipe gestures support
- Score tracking
## Technologies
- [Next.js](https://nextjs.org/)
- [React](https://reactjs.org/)
- [Vercel](https://vercel.com/) for deployment
## Installation
To run this project locally, follow these steps:
1. **Clone the repository:**
```bash
git clone https://github.com/salimzeeshan/2048.git
cd 2048-game
```
2. **Install dependencies:**
```bash
npm install
```
3. **Run the development server:**
```bash
npm run dev
```
4. Open your browser and navigate to `http://localhost:3000`.
## Usage
- 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.
## Contributing
Contributions are welcome! If you have suggestions for improvements or new features, please open an issue or submit a pull request.
1. Fork the repository
2. Create a new branch (`git checkout -b feature-branch`)
3. Make your changes
4. Commit your changes (`git commit -m 'Add some feature'`)
5. Push to the branch (`git push origin feature-branch`)
6. Open a pull request
---
Developed by [Mohammad Zeeshan Salim](https://salimzeeshan.github.io/)