How to programmatically solve the 15 (moving numbers) puzzle?

后端 未结 7 1812
礼貌的吻别
礼貌的吻别 2021-02-04 08:02

all of you have probably seen the moving number/picture puzzle. The one where you have numbers from 1 to 15 in a 4x4 grid, and are trying to get them from random starting positi

7条回答
  •  灰色年华
    2021-02-04 08:36

    Make sure that your puzzle is solvable first. Not all are.

    Otherwise your strategy looks sound.

提交回复
热议问题