May-30-2020, 05:54 PM
(Nov-04-2018, 10:28 AM)aliyark145 Wrote: [python]
from copy import deepcopy
...
This code is already very efficient (compared to my 3 other 8-puzzle solvers)! The only thing is that the empty cell is at start instead of at the end of the 3x3 matrix, as most n-puzzlers are. I am not sure if it is built to work in this way only., Anyway, I tried to fix this but the way is not evident and it seems it will take some time … If it's worthwhile, can you give me a hint of how to do that.