Welcome to the 2048 game! This repository contains a browser-based implementation of the popular puzzle game "2048", where the goal is to combine tiles to reach the elusive 2048 tile.
2048 is a single-player sliding block puzzle game. The game's objective is to slide numbered tiles on a grid to combine them, with the goal of creating a tile with the number 2048. The game continues until there are no more valid moves available.
- Responsive design for various screen sizes.
- Smooth animations and transitions for tile movements.
- Real-time scoring system to track points earned by merging tiles.
- Game over detection when no more moves are possible.
- Keyboard arrow key or on-screen button controls for tile movements.
- Getting Started: Click on the "Play 2048 Game" link above to access the deployed game.
- Game Mechanics: Use the arrow keys on your keyboard or the on-screen buttons to slide tiles in different directions.
- Merging Tiles: Tiles with the same number will merge when they collide, creating a new tile with the sum of their values.
- Scoring: Earn points for every tile merged. The game keeps track of your score, displayed in real-time.
- Game Over: The game ends when no more moves are possible, and a message will appear indicating the end of the game.
- HTML: The game's structure is defined in the
index.html
file. - CSS: Styling for the game elements is implemented using CSS in the
style.css
file. - JavaScript: Game logic and functionality are implemented using JavaScript in the
script.js
file.
The game is deployed and hosted using GitHub Pages. You can access the live version of the game by clicking on the "Play 2048 Game" link above.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, feel free to open an issue or submit a pull request.