Skip to content

🧩 2048 Web Game – A modern and responsive web-based version of the classic 2048 puzzle. Built with HTML, CSS, and JavaScript, featuring smooth animations, intuitive controls, and a clean UI. Merge tiles, reach 2048, and set new high scores!

License

Notifications You must be signed in to change notification settings

mahmudnibir/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitHub status GitHub Repo stars GitHub contributors GitHub issues GitHub forks GitHub last commit GitHub license GitHub Pull Requests GitHub Code Size Platform


2048 Game

Note

This project is intended for learning and experimentation.


A modern implementation of the classic 2048 puzzle game, built with HTML, CSS, and JavaScript.

How to Play

  1. Use your arrow keys or WASD keys to move all tiles
  2. When two tiles with the same number touch, they merge into one with their sum
  3. After each move, a new tile with a value of 2 or 4 appears
  4. Create a tile with the number 2048 to win!

Features

  • Smooth animations and transitions
  • Mobile-friendly with touch/swipe support
  • Score tracking with best score saved locally
  • Undo last move functionality
  • Responsive design that works on all devices
  • Game state preservation
  • Clean, modern UI

2048

Controls

  • Arrow Keys or WASD: Move tiles
  • New Game button: Start a new game
  • Undo button: Revert last move
  • On mobile: Swipe in any direction to move tiles

Installation

1️⃣ Clone the repository and navigate into it:

git clone https://github.com/mahmudnibir/2048.git
cd 2048

2️⃣ Open index.html in your web browser

3️⃣ Start playing!


Technologies Used

  • HTML5 – The backbone of the project, ensuring a semantic and accessible structure.
  • CSS3 – Styled with modern techniques like Grid Layout and smooth Animations that make it pop.
  • JavaScript (ES6+) – Using modern Vanilla JS to keep things interactive and lit.
  • Local Storage – Keeping your scores on lock for that persistent gaming vibe.

Tip

If you find this project helpful, please consider giving it a star ⭐ on GitHub! It helps others discover the project.

Contribution Guidelines

Want to improve the script? Contributions are welcome!

πŸ“Œ How to Contribute

Step Action
πŸ— Fork Clone the repo & create a new branch
πŸ”§ Develop Make your changes, write clear commit messages
πŸ“Œ Push Push to your fork & create a PR
πŸš€ Review Wait for approval & merge

License

πŸ“ This project is licensed under the MIT License. See the LICENSE file for details.

Contact

Developed by Nibir Mahmud

Email: nibirbbkr@gmail.com
Github: @mahmudnibir


About

🧩 2048 Web Game – A modern and responsive web-based version of the classic 2048 puzzle. Built with HTML, CSS, and JavaScript, featuring smooth animations, intuitive controls, and a clean UI. Merge tiles, reach 2048, and set new high scores!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published