a_star_algorithm 0.4.0 copy "a_star_algorithm: ^0.4.0" to clipboard
a_star_algorithm: ^0.4.0 copied to clipboard

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

pub package

a_star_algorithm #

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

20
likes
160
points
1.33k
downloads

Publisher

verified publisherrafaelbarbosatec.com

Weekly Downloads

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

Repository (GitHub)

Topics

#astar #algorithm #pathfinding

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on a_star_algorithm