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

后端 未结 7 1789
礼貌的吻别
礼貌的吻别 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:21

    This site has a nice explanation about 3x3 grids, you could probably extend it to 4x4 quite easily.

提交回复
热议问题