path

package
v0.0.0-...-bf68151 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RouteCommandsToEventCommands

func RouteCommandsToEventCommands(path []RouteCommand) []*data.Command

Types

type Passable

type Passable interface {
	At(x, y int) bool
}

type RouteCommand

type RouteCommand int
const (
	RouteCommandMoveUp RouteCommand = iota
	RouteCommandMoveRight
	RouteCommandMoveDown
	RouteCommandMoveLeft
	RouteCommandTurnUp
	RouteCommandTurnRight
	RouteCommandTurnDown
	RouteCommandTurnLeft
)

func Calc

func Calc(passable Passable, startX, startY, goalX, goalY int, mustReachGoal bool) ([]RouteCommand, int, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL