Skip to content

asianchun/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2048 Game

Welcome to the 2048 Game project! This is a web-based implementation of the popular 2048 puzzle game using HTML, CSS, and JavaScript. Test your strategic skills and challenge yourself to reach the elusive 2048 tile!

Table of Contents

Demo

Check out the live demo of the 2048 Game here.

Features

  • Clean and responsive user interface.
  • Swipe or arrow key controls for an intuitive gaming experience.
  • Win and lose scenarios with appropriate messages.
  • The ability to restart the game.

Run Locally

To run the 2048 Game locally, follow these steps:

  1. Clone the repository to your local machine.
    git clone https://github.com/asianchun/2048.git
  2. Open the "index.html" file in your preferred web browser.
  3. That's it! You're ready to play the 2048 Game.

How to Play

  1. Open the game in your web browser.
  2. Use the arrow keys to control where the tiles move.
  3. Keep doing that until you win or lose.
  4. You can always start a new game, if you wish to do so.

Customisation

Feel free to customize the game to suit your preferences. Here are a few ideas:

  • Add more tiles after 2048. You can do that by adding extra values in the "progression" and "numericProgression" arrays. You can find them in "index.js"
  • Modify the styling of the app and the tiles in "styles.css"

Contributing

If you have any suggestions, improvements, or bug fixes, feel free to open an issue or create a pull request. Your contributions are highly welcome!

Releases

No releases published

Packages

No packages published