Sliding puzzle with ai

Sliding puzzle with ai
0

#1

I have a sliding tile puzzle that you play and then it uses the A*Star to have the computer solve it. I would like to see the moves that the computer made, but it goes too fast ( I have a string of the moves). I have tried timeOut, transition, etc. How can I slow it down so I can see the individual moves as it solves the puzzle? Thank you


#2

i used svg if that matters


#3

I’m not sure if this is the best way to do it but you could always use setTimeout recursively to have a delay between each move.