The game is built using HTML, CSS, and JavaScript, and allows users to play the popular 2048 game with various grid sizes.
- Game Overview
- Features
- Usage
- Project Structure
The "Number-Box" 2048 game allows players to choose the grid size and use arrow keys to play the game. The goal is to combine numbers to reach the 2048 tile.
- Choose grid size: 4x4, 5x5, 6x6, or 7x7
- Use arrow keys to move tiles
- Undo functionality
- Animated snowflakes as a visual effect
- Open the 2048-game.html file in your web browser.
- Choose the grid size by clicking the buttons (4, 5, 6, or 7).
- Use the arrow keys to move the tiles and combine them to reach 2048.
- Click the undo button to undo the last move.
number-box-2048/
├── css/
│ └── style.css
├── js/
│ ├── jquery.js
│ └── number-box.js
├── 2048-game.html
└── README.md
- 2048-game.html: The main HTML file for the game.
- css/style.css: The CSS file for styling the game.
- js/jquery.js: The jQuery library.
- js/number-box.js: The JavaScript file containing the game logic.