Skip to content

In addition to Jigsaw, n-Puzzle using picture and AI to solve it

License

GPL-2.0, Unknown licenses found

Licenses found

GPL-2.0
LICENCE
Unknown
LICENCE.ICONS
Notifications You must be signed in to change notification settings

appseng/N-Photo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The N-Photo is a sliding puzzle that consists of a frame of numbered square tiles in random order with one tile missed. If the size is 3×3 tiles, the puzzle looks like the 8-puzzle or 9-puzzle but with a picture, and if 4×4 tiles, the puzzle looks like the 15-puzzle or 16-puzzle named, respectively, for the number of tiles and the number of spaces. The object of the puzzle is to place the tiles in order by making sliding moves that use the empty space.

This implementation of a popular game using a picture (under CC0 if the source "Internet" chosen), which divides into pieces with a last piece missed.

The N-Photo consists of Client and Server. The Client is based on "Drag and Drop Puzzle Example" of Qt-framework. The Client can operate with one image from a local directory, a remote Server, or with random picture from the Internet. The Server saves pictures in a SQLite-database and provides them to Clients.

The last versions of the software include:

  • the AI is added to solve the N-Photo with a couple of clicks;
  • a feature to download images from the Web. It is the option by default, but a user of the software can change this behavior to load images from Server or from the directory on the computer.

N-Photo is a game that's now possible to use with Qt5 (checked with Qt 5.15 LTS). You have to have that framework installed to launch the application.

How to make from the sources:

sudo apt-get install qtdeclarative5-dev
git clone https://github.com/appseng/N-Photo.git N-Photo
cd N-Photo/apps/client
qmake
make

Then launch N-Photo:

bin/n-photo

Also you can modify the source code of the N-Photo with Qt-Creator or/and distribute modified versions of the software under GPL licence.

About

In addition to Jigsaw, n-Puzzle using picture and AI to solve it

Topics

Resources

License

GPL-2.0, Unknown licenses found

Licenses found

GPL-2.0
LICENCE
Unknown
LICENCE.ICONS

Stars

Watchers

Forks

Packages

No packages published