A classic 2048 puzzle game built with pure JavaScript, HTML, and CSS. The objective of the game is to slide numbered tiles on a grid to combine them and create a tile with the number 2048.
You can play the live version of the game here:
To get a local copy up and running, follow these simple steps.
- Clone the repository:
git clone https://github.com/nikitachupahin/2048_game.git- Open the project folder:
cd 2048_game- Install NPM packages:
npm install- Start the project:
npm start-
HTML5: For the basic structure and layout of the game.
-
SCSS: For styling the game board, tiles, and controls.
-
JavaScript (ES6+): For all the game logic, including tile movement, merging, scoring, and state management.
-
Git: For version control and tracking changes throughout the development process.
-
Score Tracking: The score is updated in real-time as you combine tiles.
-
Start & Restart: Easily start a new game or restart the current one at any point.
-
Responsive Controls: Play using either your keyboard's arrow keys or the on-screen arrow buttons, making it accessible for both desktop and mobile devices.