+ 1
How can create a 9 tile puzzle that has an initial state and give me a solved state
Java program
9 Antworten
+ 4
https://code.sololearn.com/WCBcC89Bd0NJ/?ref=app
u mean a kind of that?
+ 2
David Dolejší you have to check before if the random task is solvable.
+ 1
9 tiles
0
Any. The puzzle has to have a blank tile n the other tiles have from from 1 to 8
0
In the 8-puzzle , differently numbered tiles are fitted into 9 spaces on a grid. One
space is left blank so that the tiles can be moved around to form different patterns. The goal is to
find a series of moves of the tiles into the blank space that places the board in a goal
configuration. The following are legal moves, (please note that if the blank is at a corner only
two moves are possible, if it is at the centre all the four moves are possible, if on the remaining
spaces three moves are possible):
Move the blank up
Move the blank right
Move the blank down
Move the blank left
0
Yes to solve it
0
Okay thanks