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 下载可执行文件
- 三维视图的迷宫: 下载的 exe 二进制 >> 右键 >> 创建快捷方式 >> 修改快捷方式文件的目标(在后面追加
-d 3d) >> 双击打开快捷方式
- 三维视图的迷宫: 下载的 exe 二进制 >> 右键 >> 创建快捷方式 >> 修改快捷方式文件的目标(在后面追加
- 查看帮助使用: 源码
python main.py --help/ 二进制maze --help- 支持自动生成迷宫、寻找最佳路径,且动态显示迷宫生成和搜索过程
- 支持手动绘制迷宫(鼠标左键绘制通道、右键绘制墙体)、走迷宫(鼠标左键走、右键取消)
maze -d 2d运行二维视图的迷宫maze -d 3d运行三维视图的迷宫
软件架构
- 核心目录结构解释:
- algorithm 里面核心算法已抽象为通用接口,以支持扩展多种界面展现方式,详情查看帮助文档
magic_maze
├── README.md # 项目介绍
├── algorithm # 核心算法和数据结构实现
├── demo # 使用示例模型等
├── doc # 帮助文档,主要基于 script/generate_doc.sh 脚本在提交时自动生成
├── main.py # 主程序
├── requirement.txt # 依赖
├── script # 单元测试、帮助文档生成等自动化脚本
└── ui # pyqt/panda3d 的 UI 主程序
欢迎扫码关注作者,获取更多好玩的程序哦~
Metadata
Release files for magic-maze 2.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| magic_maze-2.0.6.tar.gz | 1.2 MB | Without provenance | Details for magic_maze-2.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magic_maze-2.0.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for magic_maze-2.0.6-py2.py3-none-any.whl |
Total release size: 2.6 MB
Release files / magic_maze-2.0.6.tar.gz
| Download URL | magic_maze-2.0.6.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a6a5df0b3c9d5613121983866a0d65b36a68a7b75719f5e844e9d4da6d56804
|
|
BLAKE2b-256 checksum How to use checksums |
05628ec1c5d6d967c6517e23845fa12ecb222820ba25bb1f641dcb602bcf98d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / magic_maze-2.0.6-py2.py3-none-any.whl
| Download URL | magic_maze-2.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
45f8fa74a1bd08d088a0871d0f99b93b5b9a1e0d1b7fb55183ce3007f2c16d32
|
|
BLAKE2b-256 checksum How to use checksums |
fbb49f7f5b70e970cc8dd21f720ff6e6965f6addb33d575cc0bd3d8a9bbf9250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for magic-maze 2.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.