gopathfinding

Pathfinding implementations in Go lang

  • Owner: xarg/gopathfinding
  • Platform:
  • License:: BSD 2-Clause "Simplified" License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

.. image:: https://secure.travis-ci.org/xarg/gopathfinding.png?branch=master

gopathfinding

A small package that implements pathfinding algorithms.

Implementions

  • A* (A star) - implemented
  • Dijkstra - not implemented

Installing

Using goinstall
++++++++++++++++++

::

    $ go get github.com/xarg/gopathfinding

Using make
+++++++++++++

::

    $ git clone git://github.com/xarg/gopathfinding
    $ cd gopathfinding
    $ make install

Example

::

    import (
            "fmt"
            pathfinding "github.com/xarg/gopathfinding"
    )

    func main() {
            //A pathfinding.MapData containing the 
            //coordinates(x, y) of LAND, WALL, START and STOP of the map.
            //If your map is something more than 2d matrix then you might want to modify adjacentNodes

            graph := pathfinding.NewGraph(map_data)

            //Returns a list of nodes from START to STOP avoiding all obstacles if possible
            shortest_path := pathfinding.Astar(graph)
    }

Documentation

http://gopkgdoc.appspot.com/pkg/github.com/xarg/gopathfinding

Or

::

    $ go doc github.com/xarg/gopathfinding

Main metrics

Overview
Name With Ownerxarg/gopathfinding
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:BSD 2-Clause "Simplified" License
所有者活动
Created At2011-08-03 15:29:47
Pushed At2017-02-23 19:32:24
Last Commit At2017-02-23 14:32:23
Release Count0
用户参与
Stargazers Count32
Watchers Count3
Fork Count7
Commits Count20
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private