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.
https://Nazarii84.github.io/2048-game/
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.
- Modular OOP-based game logic (
Gameclass) - 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
- JavaScript (ES6 Modules)
- SCSS
- HTML5
- Parcel Bundler / Gulp Template
- ESLint
- Prettier
git clone https://github.com/Nazarii84/2048-game.git
cd 2048-gamenpm installnpm start