1 Star 0 Fork 0

rocket049 / findWay

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

走迷宫程序find-way

从迷宫中寻找正确路径。

有2种迷宫模式:实线模式和通道模式

一、实线模式

迷宫用PNG图片表示,要求背景为白色,线条为黑色,入口处用红色(0xFF0000)的点标记,出口用蓝色(0x0000FF)的点标记。输入代表迷宫的PNG图片,输出代表路径的PNG图片。

运行命令:findWay -png 迷宫.png -o 路径.png

下面是两个例子:

迷宫1:

迷宫1

迷宫1的路径

迷宫2:

迷宫2

迷宫2的路径

一、通道模式

迷宫同样用PNG图片表示,要求通道内部为白色,边界为黑色线条,入口处用红色(0xFF0000)的线标记,出口用蓝色(0x0000FF)的线标记,在通道内接近入口处标记一个绿色(0x00FF00)的起始点。输入代表迷宫的PNG图片,输出代表路径的PNG图片。

运行命令:findWay -mode 1 -png 迷宫.png -o 路径.png

下面是例子:

迷宫3:

迷宫3

迷宫3的路径

Comments ( 0 )

Sign in for post a comment

About

走迷宫程序。从迷宫(PNG图片,白色背景,黑色线条)中寻找正确路径,入口用红色(0xFF0000)的点标记,出口用蓝色(0x0000FF)的点标记。 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/rocket049/find-way.git
git@gitee.com:rocket049/find-way.git
rocket049
find-way
findWay
master

Search