souravtecken / sort_15

A python implementation of the popular grid sorting game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sort_15

A python implementation of the popular grid sorting game (Sort 15).

To run:

  1. Install tkinter: (For Linux only)
sudo apt-get install python3-tk
  1. Install Pillow (PIL Fork):
pip install Pillow
  1. Use the graphics.py file within the repository.
  2. Run sort15.py

The graphics.py used is a slightly modified version of the standard graphics library to accomodate PIL objects: graphics.py

Changes made to the Image class to accept an image as a PIL Image object rather than the file name.


To customize: Global variables in sort15.py

  1. gapWidth : Border size
  2. tileWidth : Width of the tile
  3. gridSize : Number of tiles per row/column
  4. imageFileName : Name of image with extension being used. Image must be in the same directory as the program.

Pressing the escape key after solving puzzle exits game, pressing any other key starts a new game.

About

A python implementation of the popular grid sorting game.


Languages

Language:Python 100.0%