Skip to content

yahohulia/2048_game

Repository files navigation

🧩 Vanilla 2048 Game

No introduction needed, just take a look: Demo

🎯 Demo Showcase

🏅 Features

  • Robust Game Logic - A pure JavaScript implementation of the classic 2048 mechanics.

  • Fully Responsive Interface - Adaptive grid layout that ensures a seamless gaming experience across multiplatform

  • Maintainable Architecture - Structured with SCSS (using the BEM methodology).

  • Score Persistence - Integrated logic to track and display the player's scores dynamically.

  • Tile Merging Algorithm - Sophisticated logic for handling tile collisions and value doubling.

  • Random Spawning - Intelligent generation of new tiles in available empty slots after each move.

  • Win/Loss Detection - Automated checks to determine when the 2048 tile is reached or no more moves are possible.

HTML CSS JS BEM Sass ESLint

💻 Used Technologies

  • HTML
  • CSS
  • SASS
  • JS
  • BEM Methodology

🔧 Getting Started

Clone the repository:

  git clone https://github.com/yahohulia/2048_game.git
  cd 2048_game

Install dependencies:

  npm install
    # or
  yarn install

Run the project locally:

  npm start
    # or
  yarn start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors