🧩 2048 the game
A downloadable game
=================================
The classic number‑merging puzzle game, now with powerful new features! Slide tiles to combine them and reach the elusive 2048 tile. But this version gives you more control: resize the board, undo your mistakes, and switch between light and dark themes. Clean, responsive, and built for endless fun!
🎮 What Makes This Version Special?
------------------------------------
🔄 UNDO
- Made a wrong move? Press the Undo button to revert to the previous state
- Stores up to 10 moves in history — enough to fix most mistakes
- Saves both grid state and score, so you never lose progress
📐 RESIZE
- Play on 3x3 for a quick challenge or 5x5 for a marathon session
- 4x4 is the classic size — perfect for the traditional experience
- Board adapts instantly with a clean animation
🌓 DARK THEME
- Toggle between light and dark themes with one click
- Dark theme uses a rich, purple‑toned palette that's easy on the eyes
- All tile colors and text adapt automatically
🏆 CLASSIC 2048 GAMEPLAY
- Merge tiles by sliding in four directions
- Each merge adds the value to your score
- Reach 2048 to win — or keep going for a high score!
- Game over detection when no moves remain
✅ Game Features
-----------------
✔ Classic 2048 mechanics with smooth tile merging
✔ Undo button (stores up to 10 moves)
✔ Resize board: 3x3, 4x4, or 5x5
✔ Dark / Light theme toggle
✔ Score display updates in real‑time
✔ Status messages for game state (win, lose, invalid moves)
✔ Keyboard controls: Arrow keys for movement
✔ Responsive design works on desktop and mobile
✔ Clean, modern UI with rounded tiles and shadows
🕹️ How to Play
---------------
Rules
- Use arrow keys (← ↑ → ↓) to slide all tiles in that direction
- When two tiles with the same number touch, they merge into one
- The new tile's value is the sum of the two merged tiles
- Each move adds a new random tile (2 or 4) to an empty spot
- The goal: reach the 2048 tile!
Controls
- ⌨️ Arrow keys → Move tiles
- 🖱️ Click "New" → Start a fresh game
- 🖱️ Click "Undo" → Revert last move
- 🖱️ Click 3x3, 4x4, or 5x5 → Change board size
- 🖱️ Click Theme toggle → Switch light/dark mode
🎨 Visual Style
----------------
- Light theme: classic 2048 look with warm beige and gold tones
- Dark theme: rich purple‑gray palette with glowing accent tiles
- Rounded tiles with subtle shadows and depth
- Smooth transitions on tile merges and movements
- Tile colors scale with value (2 → 2048 and beyond)
📱 Platform
------------
- Playable in any modern browser (Chrome, Firefox, Edge, Safari)
- Touch‑friendly on mobile devices
- No downloads — just open the page and start sliding
- Built with vanilla HTML, CSS, and JavaScript
👨💻 Tech Stack
----------------
- HTML5 + CSS3 — structure and styling
- Vanilla JavaScript — game logic, state management, UI
- No external dependencies — everything is self‑contained
📝 Changelog
-------------
v2.0 — Enhanced Edition
- Added Undo functionality (10‑move history)
- Added board resizing (3x3, 4x4, 5x5)
- Added Dark / Light theme toggle
- Improved status messaging and feedback
- Responsive design for all screen sizes
v1.0 — Classic 2048
- Core game mechanics
- Score tracking
- Win / Game Over detection
---------------
1. Open the game — default 4x4 board with two starting tiles
2. Use arrow keys to slide tiles
3. Merge tiles to build your score
4. Reach 2048 to win!
5. Use Undo if you make a mistake
6. Resize the board for a new challenge
🧩 From 2 to 2048 — how far can you go?
🏷️ Tags
--------
2048, Puzzle, Math, Strategy, Logic, Numbers, Tile Game, Browser, Undo, Resize, Dark Theme, Classic, Casual, HTML5, JavaScript
Made with ❤️ · Slide, merge, and conquer!
| Published | 10 days ago |
| Status | Released |
| Author | 2d creator |
| AI Disclosure | AI Assisted, Code |

Leave a comment
Log in with itch.io to leave a comment.