Skip to main content

magic_maze

介绍

迷宫游戏

项目目的

娃最近迷恋迷宫游戏,买的迷宫书走完就没了,他表示还没玩够。

所以就做了这个迷宫游戏,可以实现随机生成迷宫、走迷宫、显示答案等效果,让他可以无限玩。

二维版本的玩腻了,小孩子还是比较喜欢有故事情节的迷宫,又追加做了三维视图模式(姑且叫: 好饿的熊猫找竹叶球吃)。

安装使用

  • 源码安装: git clone https://github.com/HeLiangHIT/magic_maze.git && cd magic_maze && python setup.py install
  • pip源安装: pip install magic_maze 源地址 https://pypi.org/project/magic-maze/
  • 下载可执行文件: 到 https://github.com/HeLiangHIT/magic_maze/releases 下载可执行文件
  • 查看帮助使用: 源码 python main.py --help/ 二进制 maze --help
    • 支持自动生成迷宫、寻找最佳路径,且动态显示迷宫生成和搜索过程
    • 支持手动绘制迷宫(鼠标左键绘制通道、右键绘制墙体)、走迷宫(鼠标左键走、右键取消)
    • maze -d 2d 运行二维视图的迷宫
    • maze -d 3d 运行三维视图的迷宫

./doc/demo-2d.png ./doc/demo-3d.png

软件架构

  • 核心目录结构解释:
    • algorithm 里面核心算法已抽象为通用接口,以支持扩展多种界面展现方式,详情查看帮助文档
magic_maze
├── README.md # 项目介绍
├── algorithm # 核心算法和数据结构实现
├── demo # 使用示例模型等
├── doc # 帮助文档,主要基于 script/generate_doc.sh 脚本在提交时自动生成
├── main.py # 主程序
├── requirement.txt # 依赖
├── script # 单元测试、帮助文档生成等自动化脚本
└── ui # pyqt/panda3d 的 UI 主程序

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magic_maze-2.0.5.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magic_maze-2.0.5-py2.py3-none-any.whl (1.4 MB view details)

Uploaded Python 2Python 3

File details

Details for the file magic_maze-2.0.5.tar.gz.

File metadata

  • Download URL: magic_maze-2.0.5.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for magic_maze-2.0.5.tar.gz
Algorithm Hash digest
SHA256 ad1145fba2005f02f036f61460f2fd382a13f0204adc476a02c0b247001ce660
MD5 ac7dd7faed99d4b79fa867844a09199f
BLAKE2b-256 f6cd65bb2e060e630d23b2e8560d03890da711a603954f7f8238bd80eb587e82

See more details on using hashes here.

File details

Details for the file magic_maze-2.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: magic_maze-2.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for magic_maze-2.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e447b82c6431691a4db324071f757f078c51119ac37eaa6b60fb3a48a184c8c7
MD5 f1eacb77dc9d1101b3c2147c8ef31dd4
BLAKE2b-256 1e46bfe3bea60b145fa126a9d404fd2efdd78dd8eb60636189e5eae37115b029

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.6

2 files

This release

2.0.5 This release

2 files

1.0.1

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page