gopathfinding

Pathfinding implementations in Go lang

  • 所有者: xarg/gopathfinding
  • 平台:
  • 许可证: BSD 2-Clause "Simplified" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

.. 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

主要指标

概览
名称与所有者xarg/gopathfinding
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2011-08-03 15:29:47
推送于2017-02-23 19:32:24
最后一次提交2017-02-23 14:32:23
发布数0
用户参与
星数32
关注者数3
派生数7
提交数20
已启用问题?
问题数0
打开的问题数0
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?