a_star_algorithm 0.3.2 copy "a_star_algorithm: ^0.3.2" to clipboard
a_star_algorithm: ^0.3.2 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 plugin, add a_star as a dependency in your pubspec.yaml file.

Example #

import 'package:flutter/material.dart';
 Iterable<Point> result = AStar(
      rows: 20,
      columns: 20,
      start: Point(5,0),
      end: Point(8,19),
      barriers: [
        Point(10,5),
        Point(10,6),
        Point(10,7),
        Point(10,8),
      ],
    ).findThePath();

Demo Online

20
likes
150
pub points
74%
popularity

Publisher

verified publisherrafaelbarbosatec.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on a_star_algorithm