2013年12月25日
摘要: 这是一个使用A* search算法解迷宫的问题,细节请看:http://www.laurentluce.com/posts/solving-mazes-using-python-simple-recursivity-and-a-search/Laurent Luce的A* search算法有点问题,我这边运行是死循环,稍微修改了一下。import heapqclass Cell(object): def __init__(self, x, y, reachable): self.reachable = reachable self.x = x s... 阅读全文
posted @ 2013-12-25 10:21 一个人的天空@ 阅读(2094) 评论(0) 推荐(0) 编辑