A web-based implementation of the classic 2048 puzzle game built using HTML, CSS, and JavaScript. The goal is to merge tiles with the same numbers to reach the 2048 tile while achieving the highest possible score.
- 🎯 Interactive 4×4 grid gameplay
- 🖱️ Drag / swipe controls for movement
- 🔢 Tile merging with dynamic updates
- 📊 Real-time score tracking
- 🏆 Win and Game Over detection
- 🎨 Clean and responsive UI
- ⚡ Smooth tile animations
- ❌ Arrow keys are currently not supported
- ✅ Use mouse drag (desktop) or swipe gestures (mobile) to play the game
- HTML5 – Structure
- CSS3 – Styling and layout
- JavaScript (ES6) – Game logic and interactions
- Drag (⬆️ ⬇️ ⬅️ ➡️) on the grid to move tiles
- Merge tiles with the same number
- A new tile (2 or 4) appears after each move
- Reach 2048 to win 🎉
- Game ends when no moves are left
2048-game/
│── index.html
│── style.css
│── script.js
git clone https://github.com/your-username/2048-game.git
cd 2048-gameOpen index.html in your browser.
- ⌨️ Add keyboard (arrow key) support
- 💾 High score saving (Local Storage)
- 🎵 Sound effects
- 🌙 Dark mode
This project is licensed under the MIT License.