gui.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:maze-pathfinder 作者: ivan-ristovic 项目源码 文件源码
def show_help(self):
        tkMessageBox.showinfo("Info",
            "This is a simple program that takes maze input in form of " +
            "an image and solves it using the algorithm of your choice.\n" +
            "The program outputs an image with drawn exit path (if the maze is valid).\n" +
            "Rules for a valid maze:" +
            "\n    1. Everything that is not white will be interpreted as a wall." +
            "\n    2. The maze must have one starting point on top, and one exit point in the bottom" +
            "\n       (if there are multiple entry/exit points, only the first will be used)" +
            "\n    3. The maze must be surrounded by walls (i.e. must be \"closed\")" +
            "\n    4. It is advisable for the corridors to be 1px wide, but it is not mandatory" +
            "\n       (the output will be correct for Dijkstra and A*, but not for DFS or BFS)"
        )


    # About window
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号