Skip to content
Protocol oriented A* pathfinding algorithm implementation in Swift 5.
Swift Objective-C Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Test swift using circleCI Jun 8, 2019
AStar iOS change first letter to uppercase and rename targets(refer to some pop… Jun 8, 2019
AStar.xcodeproj Add script to auto generate linux tests Jun 15, 2019
Playground.playground
Sources
Tests Add script to auto generate linux tests Jun 15, 2019
docs
scripts
.gitignore Conform to Swift Package manager structure Jun 7, 2019
License.txt Create License.txt Dec 6, 2016
Package.swift Use swift-tools-version:5.0 Jun 8, 2019
README.md Add spacing between badges Jun 8, 2019

README.md

A-Star

Swift CircleCI

A* (A star) pathfinding algorithm implementation in Swift 5.0 (Playground included) using protocol oriented programming.

Add pathfinding to your graph just by implementing the 3 requirements of the GraphNode protocol.

Playground

  • To try the playground open: AStar.xcodeproj
  • Build the framework (command + b)
  • Click on Playground.playground

Playground

Swift Package Manager

You can now add this package to your project using SPM 🎉

Using Xcode

Xcode 11 has a new interface to include packages into your existing projects.

  • Click FileSwift PackagesAdd Package Dependency...
  • Search for AStar and select this repository.
  • Follow the on screen instructions

Playground

Manualy editing package file

To include it in your package manually, add the following dependency to your Package.swift file.

.package(url: "https://github.com/Dev1an/A-Star.git", .branch("master"))

Use import AStar to access the APIs.

You can’t perform that action at this time.