Skip to content

Latest commit

 

History

History

16 Puzzle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

16 Puzzle Game

A simple implementation of the 16 Puzzle game (also known as the 15-Puzzle) using HTML, CSS, and JavaScript. This game includes a timer and a move counter.

Table of Contents

Features

  • Shuffle and display the 16-Puzzle grid.
  • Track the number of moves made.
  • Timer to track the elapsed time.
  • Buttons to start and reset the game.

Setup

  1. Clone the repository or download the project files.

    git clone https://github.com/yourusername/16-Puzzle-game.git
    
  2. Navigate to the project directory. cd 16-puzzle-game

  3. Open index.html in your preferred web browser.

How to Play

  1. Open the game in a web browser.
  2. Click the "Start Game" button to begin.
  3. Click on a tile adjacent to the empty space to move it.
  4. Continue moving the tiles until they are in the correct order.
  5. Use the "Reset Game" button to shuffle the tiles and start over.

Project Structure

16-Puzzle-game/ ├── index.html ├── styles.css └── script.js └── README.md

  • index.html: The HTML file containing the structure of the game.
  • styles.css: The CSS file for styling the game.
  • script.js: The JavaScript file for game logic and interactivity.
  • README.md: The readme file you are currently reading.

Credits

This game was created by Nikita Saini [github - @katarianikita2003] as a simple project.