FLUTTER ECOSYSTEM

RafaelBarbosatec/a_star

Package that uses the A * algorithm to find a way to the destination through the barriers.

a_star project cover
Stars
20
Forks
8
Last push (UTC)
Dec 20, 2024
Project status
Active
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
LanguagesDartHTMLSwiftKotlinObjective-C

Technical topics

Packages published by this repository

Dependencies used

Dependency list 3 items

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project 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