Skip to content

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

License

Notifications You must be signed in to change notification settings

RafaelBarbosatec/a_star

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

import 'dart:math';
import 'package:a_star_algorithm/a_star_algorithm.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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages