I am developing a 15 jigsaw puzzle using javascript. Since half of the combinations in puzzle 15 are unsolvable, I use the formula at http://mathworld.wolfram.com/15Puzzle.html to check for solvability. I am currently adding the ability to switch to 8 puzzles (3x3). Are there insoluble combinations in 8 puzzles? If so, can I use the same formula for it?
Yes, half of the configurations of the n-puzzle game are unsolvable, as indicated here and here . You can also apply the same criterion: the number of permutations inversions must be even.
Source: https://habr.com/ru/post/1432442/More articles:JQuery: how to stop a child onclick event while still raising the parent onclick event - javascriptwebview setBackgroundColor when playing a gif image - androidHow to resize PDF graphics created in R using Illustrator - rIs this the right way to compare intentions? - androidMVC 4 OAuth - NotImplementedException - asp.net-mvcSyntax for combining COUNTIF and MID functions in Excel - syntaxHow to get VideoView buffering percentage on Android - androidHow to start (play) a video once when the buffer reaches 20% in Android view mode - android-mediaplayerThe strange behavior of the Date - dateDoes Business Logic Layer have access to the database / data access level? - c #All Articles