Skip to content

This repository contains a browser-based implementation of the popular puzzle game "2048", where the goal is to combine tiles to reach the elusive 2048 tile.

Notifications You must be signed in to change notification settings

AmulyaMachhan/2048-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2048 Game

Welcome to the 2048 game! This repository contains a browser-based implementation of the popular puzzle game "2048", where the goal is to combine tiles to reach the elusive 2048 tile.

Play 2048 Game.

Screenshot

2048-GAME IMAGE

Table of Contents

About the Game

2048 is a single-player sliding block puzzle game. The game's objective is to slide numbered tiles on a grid to combine them, with the goal of creating a tile with the number 2048. The game continues until there are no more valid moves available.

Features

  • Responsive design for various screen sizes.
  • Smooth animations and transitions for tile movements.
  • Real-time scoring system to track points earned by merging tiles.
  • Game over detection when no more moves are possible.
  • Keyboard arrow key or on-screen button controls for tile movements.

How to Play

  1. Getting Started: Click on the "Play 2048 Game" link above to access the deployed game.
  2. Game Mechanics: Use the arrow keys on your keyboard or the on-screen buttons to slide tiles in different directions.
  3. Merging Tiles: Tiles with the same number will merge when they collide, creating a new tile with the sum of their values.
  4. Scoring: Earn points for every tile merged. The game keeps track of your score, displayed in real-time.
  5. Game Over: The game ends when no more moves are possible, and a message will appear indicating the end of the game.

Development

  • HTML: The game's structure is defined in the index.html file.
  • CSS: Styling for the game elements is implemented using CSS in the style.css file.
  • JavaScript: Game logic and functionality are implemented using JavaScript in the script.js file.

Deployment

The game is deployed and hosted using GitHub Pages. You can access the live version of the game by clicking on the "Play 2048 Game" link above.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, feel free to open an issue or submit a pull request.

About

This repository contains a browser-based implementation of the popular puzzle game "2048", where the goal is to combine tiles to reach the elusive 2048 tile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published