Skip to content

Laytep/2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2048

Welcome to my implementation of the classic 2048 game! This version comes with a responsive design that adapts to various screen sizes and includes basic functionalities like win/lose detection, and tracking of the best score. Experience the timeless puzzle game with a modern twist.

2024-02-2711-49-17-ezgif com-optimize

Features

  • Responsive Design: Enjoy the game on any device, from desktops to mobile phones.
  • Game State Tracking: Automatically detects win or loss conditions.
  • Score Tracking: Keeps track of your highest score across sessions.

How to Play

To play the game, simply visit https://laytep.github.io/2048/. Use the arrow keys (on desktop) or swipe (on mobile devices) to move the tiles. When two tiles with the same number touch, they merge into one with their values added up. The goal is to create a tile with a value of 2048.

Installation

No installation required! Access the game directly through your web browser at the provided link. For local development or offline play, you can clone the repository and open the index.html file in your browser.

git clone https://github.com/YourUsername/2048.git
cd 2048
open index.html # This command might vary based on your operating system.

Technologies Used

  • HTML5
  • CSS3 (with Flexbox for layout)
  • JavaScript (for game logic and interactivity)

Contributing

Contributions to improve the game or add new features are always welcome! If you're interested in contributing, please feel free to fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to Gabriele Cirulli for creating the original 2048 game.