This is a web-based implementation of the popular puzzle game 2048, written in JavaScript and HTML/CSS. The game is played by sliding numbered tiles on a grid to combine them and create a tile with the number 2048.
- Simple and intuitive design
- Smooth and responsive gameplay
- Support for keyboard and swipe-based controls
- Automatic saving of game progress
The game features a simple and intuitive design, with a clean and easy-to-use interface that allows players to focus on the gameplay. The game board is displayed prominently on the screen, with colorful tiles that are easy to distinguish.
The game is designed to be smooth and responsive, with fast animations and minimal lag. The game board updates in real-time as tiles are moved and combined, creating a satisfying and immersive gameplay experience.
The game supports both keyboard and swipe-based controls, making it easy to play on a variety of devices. Players can use the arrow keys on their keyboard to move the tiles, or swipe left, right, up, or down on their touchscreen devices.
The game automatically saves the player's progress, allowing them to continue where they left off even if they close their browser or navigate away from the page.
To play the game, simply visit the GitHub Pages site at https://ibra-kdbra.github.io/Puzzle-2048/. Use the arrow keys or swipe gestures to move the tiles around the game board and combine them to reach the target number of 2048.
- Game logic and design based on the original 2048 game by Gabriele Cirulli: https://github.com/gabrielecirulli/2048
- HTML/CSS framework: https://getbootstrap.com/
- Icons: https://fontawesome.com/
This implementation of the 2048 puzzle game is a great example of how JavaScript and HTML/CSS can be used to create simple and engaging games for the web. By exploring the code in this repository, you can learn how to create responsive and interactive user interfaces, handle user input, and implement game logic using JavaScript.