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.
- 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.
-
Clone the repository or download the project files.
git clone https://github.com/yourusername/16-Puzzle-game.git
-
Navigate to the project directory. cd 16-puzzle-game
-
Open
index.html
in your preferred web browser.
- Open the game in a web browser.
- Click the "Start Game" button to begin.
- Click on a tile adjacent to the empty space to move it.
- Continue moving the tiles until they are in the correct order.
- Use the "Reset Game" button to shuffle the tiles and start over.
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.
This game was created by Nikita Saini [github - @katarianikita2003] as a simple project.