/Sliding-Tiles

A quick 15 puzzle game I made for fun. Make sure to have pygame installed in order to run. You can put any jpg or png file in the same directory as the main file to have the game use that image as the image for the puzzle. I included a picture of a fish that can be used if you don't have any other images.

Primary LanguagePython

15-tile-puzzle

About the project

Table top card game with local wireless play.

Built with

Getting started

Prerequisites

  • python3
  • pygame python3 -m pip install -U pygame

Installation

  1. Clone the repo git clone https://github.com/milkmull/Sliding-Tiles.git
  2. Install dependencies
  3. put a .jpg or .png file in the same directory to be used as the puzzle image
  4. Run main.py python3 main.py

Usage:

Click on any tile with an empty space next to it to move that tile into the space When all of the tiles are in the correct spaces, a message will be displayed

(optional) put any .jpg or .png file into the same directory as the main file. The program will randomly select an image from all available images in the directory to use