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