This repository implements the sliding puzzle game. The player must move the pieces orthogonally in order to make the numbers in ascending order. In order to create a solvable puzzle, the steps presented in https://developerslogblog.wordpress.com/2020/04/01/how-to-shuffle-an-slide-puzzle/ are used.
- Convert the puzzle to an array
- Shuffle using the Fisher-Yates algorithm
- Check if an slide puzzle is solvable or not
- If not, turn it into a solvable onde
There is a solve button, that solves the puzzle by using A*, as described in https://abnerrjo.github.io/blog/2015/12/06/solving-the-sliding-puzzle/.