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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?