FLUTTER ECOSYSTEM

RafaelBarbosatec/a_star

使用 A* 算法通过障碍物找到通往目的地路径的包。

a_star 项目封面
Stars
20
Forks
8
最近推送(UTC)
2024年12月20日
项目状态
未归档
Rafael Almeida Barbosa GitHub avatar
GITHUB User

Rafael Almeida Barbosa ↗

Mobile Developer(Android/Flutter) In love with solutions that fit in the palm of the hand

São Paulo/São Paulo Brasil
语言DartHTMLSwiftKotlinObjective-C

技术话题

此仓库发布的插件

使用的依赖

依赖清单 3 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

pub package Code Quality

a_star_algorithm

https://github.com/RafaelBarbosatec/a_star/blob/main/img/example.jpg

A* algorithm

Usage

To use this package, add a_star_algorithm as a dependency in your pubspec.yaml file.

Example

void main() {
  Iterable<(int, int)> result = AStar(
    rows: 20,
    columns: 20,
    start: (5,0),
    end: (8,19),
    barriers: [
      (10,5),
      (10,6),
      (10,7),
      (10,8),
    ],
  ).findThePath();
}

Demo Online