Documentation
¶
Index ¶
Constants ¶
View Source
const ( Void = 0 Space = ' ' Wall = '#' Tile = '.' Right = '>' Left = '<' Down = 'v' Up = '^' )
View Source
const ( Clockwise = 'R' Counterclockwise = 'L' )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinate ¶
func (Coordinate) Add ¶
func (c Coordinate) Add(other Coordinate) Coordinate
func (Coordinate) Next ¶
func (c Coordinate) Next(dir byte) Coordinate
type Instruction ¶
func (Instruction) IsRotation ¶
func (ins Instruction) IsRotation() bool
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) Parse ¶
func (p *Parser) Parse() ([][]byte, []Instruction)
type Position ¶
type Position struct {
Pos Coordinate
Face byte
}
type Wrapper2D ¶
type Wrapper2D struct {
// contains filtered or unexported fields
}
func NewWrapper2D ¶
type Wrapper3D ¶
type Wrapper3D struct {
// contains filtered or unexported fields
}
func NewWrapper3D ¶
type Wrapper3DT ¶
type Wrapper3DT struct {
// contains filtered or unexported fields
}
func NewWrapper3DT ¶
func NewWrapper3DT(grid [][]byte) Wrapper3DT
func (Wrapper3DT) Next ¶
func (w Wrapper3DT) Next(pos *Position) Position
func (Wrapper3DT) Password ¶
func (w Wrapper3DT) Password(pos Position) int
Click to show internal directories.
Click to hide internal directories.