Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.17 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.17 KB

2048 Game

Project Overview

The 2048 Game is an classic puzzle game where players combine numbered tiles on a 4x4 grid to reach the 2048 tile. This project is designed using an object-oriented approach, with the core functionality encapsulated within the Game class. This class efficiently manages the game state, including grid updates and game logic, ensuring transitions between different states: «idle», «playing», «win» and «lose». The game starts in an «idle» state, changing as the player progresses. The Game class also simplifies tracking the current score and handles key processes such as tile movement and merging. This approach not only enhances maintainability but also makes it easy to extend the game with new features.

Preview

Technologies Used

  • HTML5
  • CSS3 (SCSS)
  • JavaScript (ES6)

Additional Launch Instructions

Fork original repository on GitHub

Clone the forked repository: git clone https://github.com/hsvirina/2048-game.git

Navigate to the project directory: cd 2048-game

Install the necessary project dependencies: npm install

Start the project: npm start