Hi,
I'm doing an assignment for class where we're given the following code in order to solve the 8-piece sliding puzzle problem. We are to complete the method boolean isSolvable(Configuration configuration). I've been able to set up the bfs algorithm but I'm having trouble getting the method to actually figure out if the configuration is solvable. Right now I'm getting false, false, false when the output should be true true false. Can someone see where I'm going wrong?
Here is the given code:
This is the suggestion from my professor:
This is my attempt:
My Output: false, false, false