Skip to content

4xmplme/2048

Repository files navigation

🧩 2048 — Vanilla JS Implementation

A classic 2048 puzzle game built with HTML, SCSS, and JavaScript. Swipe the tiles, combine the numbers, and try to reach 2048!

🚀 Live Demo

🧰 Technologies Used

Core

  • HTML5 — Semantic structure of the game grid
  • SCSS — Styling and animations
  • JavaScript (ES6+) — Game logic and UI interactivity

Development & Tooling

  • 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

🛠 Getting Started

To run this project locally:

  1. Clone the repository:

Note! Git is required.

git clone https://github.com/4xmplme/2048.git
cd 2048
  1. Install dependencies:

Important‼ Node.js v14.21.3 or higher is required.

npm install
# or
yarn install
  1. Run the project locally:
npm start
# or
yarn start

✨ Gameplay Features

  • Keyboard support (arrow keys)
  • Animated tile movement
  • Win/Loss detection
  • Score tracking and local high score
  • Responsive layout for desktop and mobile

About

Vanilla JS Implementation

Resources

License

Stars

Watchers

Forks

Contributors