Trying to make a mini puzzle game,like tearing a photo into pieces.
The way I can think of is to calculate those pieces of image distance.
If the puzzle image is correctly solved.
Distances between piece 1 and others should approximate be some fixed values.
Some error distance 5 or 10 should be allowed.
Question is I don't if there are any other better way to do this.
What puzzle game like this usually do to solved Irrregular shape match problem?
Pieces don't need to be at the extract right location.Small gaps should be allowed.