RafaelBarbosatec / a_star

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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<Offset> result = AStar(
      rows: 20,
      columns: 20,
      start: Offset(5,0),
      end: Offset(8,19),
      barriers: [
        Offset(10,5),
        Offset(10,6),
        Offset(10,7),
        Offset(10,8),
      ],
    ).findThePath();

Demo Online

About

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

License:MIT License


Languages

Language:Dart 86.8%Language:HTML 7.0%Language:Swift 5.4%Language:Kotlin 0.6%Language:Objective-C 0.2%