计算n_puzzle问题中的曼哈顿距离?

我正在尝试计算n_puzzle问题中每个 mispla…