Skip to content

Nazarii84/2048-game

Repository files navigation

2048 Game — Classic Tile Puzzle

A clean implementation of the classic 2048 game built with vanilla JavaScript, SCSS, and modular game logic. The goal is to combine matching tiles to reach 2048 while managing limited space on a 4×4 grid.


Live Demo

https://Nazarii84.github.io/2048-game/


Design Reference

This project is inspired by the original 2048 concept. The game logic and UI were implemented and refined as part of a structured learning project.


Features

  • Modular OOP-based game logic (Game class)
  • Smooth tile movement and merging
  • Random tile generation (2 or 4)
  • Score tracking
  • Win/Lose state detection
  • Responsive layout
  • Keyboard controls (Arrow keys)
  • Restart game button
  • Simple and clean UI

Technologies Used

Core

  • JavaScript (ES6 Modules)
  • SCSS
  • HTML5

Development Tools

  • Parcel Bundler / Gulp Template
  • ESLint
  • Prettier

Getting Started

1. Clone the repository

git clone https://github.com/Nazarii84/2048-game.git
cd 2048-game

2. Install dependencies

npm install

3. Run locally

npm start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors