A classic 2048 puzzle game built with HTML, SCSS, and JavaScript. Swipe the tiles, combine the numbers, and try to reach 2048!
- HTML5 — Semantic structure of the game grid
- SCSS — Styling and animations
- JavaScript (ES6+) — Game logic and UI interactivity
- LintHTML (v0.9.6) — Markup quality
- Stylelint (v16.7.0) — Styles quality
- ESLint (v8.57.0) — Code quality
- Parcel (v2.12.0) — Build tool & bundler
To run this project locally:
- Clone the repository:
Note! Git is required.
git clone https://github.com/4xmplme/2048.git
cd 2048- Install dependencies:
Important‼ Node.js v14.21.3 or higher is required.
npm install
# or
yarn install- Run the project locally:
npm start
# or
yarn start- Keyboard support (arrow keys)
- Animated tile movement
- Win/Loss detection
- Score tracking and local high score
- Responsive layout for desktop and mobile