Skip to content

kostyaniekrasov/2048-game

Repository files navigation

2048 game with JS, HTML and SCSS.

Use arrows or WASD to play.

Project Description

This project is a web-based version of the popular 2048 puzzle game. Players combine numbered tiles by sliding them across the grid to reach the 2048 tile. The game is built using HTML, CSS, and JavaScript, ensuring smooth animations and responsive design.

What I learned

JavaScript: Improved your ability to manipulate the DOM and handle game logic.

CSS Flexbox/Grid: Achieved a responsive layout for various devices.

Event Handling: Managed user interactions effectively.

Async/Await: Implemented asynchronous operations for smooth animations and transitions.

Prerequisites

  • Node.js (version 14 or higher)
  • npm (comes with Node.js)

Installation

1. Clone the repository:

git clone https://github.com/kostyaniekrasov/2048-game.git

2. Navigate to the project directory:

cd 2048-game

3. Install the dependencies:

npm install

Running the Project

To start the project locally, run:

npm start

This will start the server and make the project available at http://localhost:3000 (or a different port specified in the project configuration).

Now you should have the project running locally.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published