Skip to content

kansalakshat/Turtle-Sliding-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

15-Tile Sliding Puzzle Game

A classic 15-tile sliding puzzle game built with Python and Turtle graphics. Arrange the scrambled tiles into the correct order by clicking on tiles adjacent to the empty space.

How to Play

  • Click on any tile that is next to the blank space to slide it into the empty spot
  • Keep sliding tiles until they are all arranged in the correct order (1 to 15, left to right, top to bottom)
  • The timer starts when the game launches — try to solve it as fast as possible!
  • Your move count is displayed so you can challenge yourself to solve it in fewer moves

Screenshot

(Add a screenshot of your game here)

Requirements

  • Python 3.x
  • No extra libraries needed — uses Python's built-in turtle module

Project Structure

sliding-game/
├── images/
│   ├── 1.gif
│   ├── 2.gif
│   ├── 3.gif
│   ├── 4.gif
│   ├── 5.gif
│   ├── 6.gif
│   ├── 7.gif
│   ├── 8.gif
│   ├── 9.gif
│   ├── 10.gif
│   ├── 11.gif
│   ├── 12.gif
│   ├── 13.gif
│   ├── 14.gif
│   ├── 15.gif
│   ├── blank.gif
│   └── win.gif
├── main.py
└── README.md

How to Run

  1. Make sure Python is installed on your computer
  2. Clone or download this repository
  3. Make sure the images/ folder is in the same directory as main.py
  4. Run the game:
python main.py

Features

  • 4x4 grid with 15 numbered tiles and one blank space
  • Live timer showing minutes and seconds
  • Move counter
  • Tiles are randomly shuffled at the start of every game
  • Win screen displayed when the puzzle is solved

Made By

(Add your name here)

About

A number sliding game with TURTLE (a built-in Python library (module))

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages