项目的GitHub地址(作者:莫凡):
https://github.com/MorvanZhou/mmaze
运行的示例代码:
import mmaze
start = (0, 0)
end = (10, 10)
m = mmaze.generate(width=11, height=11, symmetry="horizontal")
solutions = m.solve(start=start, end=end)
m.plot(solution=solutions[0], start=start, end=end)
运行效果: