Classic 2048 puzzle game implemented in pure JavaScript.
- Move tiles with arrow keys (← ↑ → ↓)
- Combine numbers to reach 2048
- Score tracking and restart option
- Clean, modular architecture (
Game.class.jshandles logic)
. ├── src │ ├── modules │ │ └── Game.class.js # Game logic │ ├── styles # SCSS styles │ ├── scripts # Main JS files │ └── index.html # Entry point ├── gulpfile.js # Build configuration ├── package.json ├── .stylelintrc └── README.md
Clone the repository
git clone https://IvanRyabukha.github.io/2048_copy_JS_game/
cd js_2048_game
Install dependencies
npm install
Run the project
npm start