Skip to content

Files

Latest commit

ff954a0 · Jul 29, 2024

History

History

2048 Game

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 17, 2024
Jun 13, 2024
Jul 29, 2024
Jun 17, 2024
Jun 13, 2024

Number-Box 2048 Game

The game is built using HTML, CSS, and JavaScript, and allows users to play the popular 2048 game with various grid sizes.

Table of Contents

  • Game Overview
  • Features
  • Usage
  • Project Structure

Game Overview

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.

Features

  • Choose grid size: 4x4, 5x5, 6x6, or 7x7
  • Use arrow keys to move tiles
  • Undo functionality
  • Animated snowflakes as a visual effect

Usage

  • 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.

Project Structure

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.