Glad you got a solution.
Type: Posts; User: Norm
Glad you got a solution.
You need to add println() calls to all the if statements, not just a couple of them
and one println first thing inside the if when the empty slot is found.
The messages should say what kind of move...
Try debugging the code by adding some println statements that print out the values of the variables used to control the moves the code makes. What are the indexes into the array for the from element...
Can you explain what "don't work" means?
What happens when a down move is chosen?
what happens when a right move is chosen?