Skip to content

Calculate the shortest path by A* Algorithm. UI and console line are Provided.

Notifications You must be signed in to change notification settings

HikoQiu/PerfectPath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drawpath.png

使用方式

1.1 cli.php 为命令行执行脚本

php cli.php

cli.png

2.1 api.php 为前端 HTTP 请求接口

http://localhost/PerfectPath/api.php

METHOD: GET

参数:

start   : int,int
end     : int,int
x_num   : int
y_num   : int
x_score : int // 小格子宽(或分数/权重)
y_score : int // 小格子高(或分数/权重)
diagonal: 1 // 允许走斜角, 1: 允许; 2: 不允许;
blocks  : int,int;int,int;int,int // 障碍点

About

Calculate the shortest path by A* Algorithm. UI and console line are Provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages