php-a-star:PHP的A *(A星)搜索算法

时间:2021-05-11 06:12:48
【文件属性】:
文件名称:php-a-star:PHP的A *(A星)搜索算法
文件大小:59KB
文件格式:ZIP
更新时间:2021-05-11 06:12:48
pathfinding a-star PHP PHP的Star算法 适用于PHP的Star寻路算法实现。 要求 您需要PHP> = 8.0才能使用此库,但是建议使用最新的稳定版本PHP。 如果需要在较旧版本PHP(或HHVM)上运行此库,请安装1.x版本。 安装 安装。 将A Star算法包添加到您的composer.json文件并下载: composer require jmgq/a-star 用法 创建一个实现DomainLogicInterface的类。 此界面中这三种方法的参数是节点。 节点可以是任何类型:它可以是字符串,整数,对象等。您可以根据业务逻辑来确定节点的形状。 您可以选择提供一种方法来标识您的节点()。 use JMGQ \ AStar \ DomainLogicInterface ; class DomainLogic implements DomainLogicInterface { // ..
【文件预览】:
php-a-star-master
----.dockerignore(54B)
----src()
--------AStar.php(6KB)
--------DomainLogicInterface.php(598B)
--------Node()
----Dockerfile(321B)
----phpunit.xml.dist(938B)
----psalm.xml(2KB)
----.phan.config.php(17KB)
----examples()
--------Terrain()
--------Graph()
----benchmark()
--------ProgressBarInterface.php(203B)
--------SymfonyProgressBar.php(520B)
--------BenchmarkCommand.php(4KB)
--------benchmark.php(425B)
--------Result()
--------TerrainGenerator.php(831B)
--------BenchmarkRunner.php(2KB)
--------InputValidator.php(2KB)
----.travis.yml(363B)
----LICENSE(1KB)
----README.md(9KB)
----tests()
--------AStarTest.php(2KB)
--------Example()
--------Node()
--------Benchmark()
----CONTRIBUTORS.md(147B)
----.gitignore(53B)
----CHANGELOG.md(3KB)
----composer.json(2KB)

网友评论