questions regarding the use of A* with the 15-square puzzle

前端 未结 8 2013
无人共我
无人共我 2021-02-07 12:41

I\'m trying to build an A* solver for a 15-square puzzle.

The goal is to re-arrange the tiles so that they appear in their natural positions. You can only sli

8条回答
  •  时光取名叫无心
    2021-02-07 13:11

    Maybe it will converge quicker if you shoot for intermediate goals first. For instance, only score the top and right rows. It shouldn't take very long to get those rows in place, then you can solve the remaining 3x3.

提交回复
热议问题