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