While you are calculating the path you could penalize squares where there is a change of direction, adding a penalty to their G scores.

  • 当你计算路径的时候,要处罚那些改变方向的方块,给它们一个附加的G值扣分。
目录 查词历史