def testHowManyMovesIsCurrentStateFromGoal(self): p = Puzzle("021345678") self.assertEqual(p.distanceToGoal(), 2)
def testGoalStateHasNoDistance(self): p = Puzzle("012345678") self.assertEqual(p.distanceToGoal(), 0)