maze

package
v0.0.0-...-154401c Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	// contains filtered or unexported fields
}

func NewBoard

func NewBoard(lines []string) *Board

func (*Board) Dump

func (b *Board) Dump()

func (*Board) Get

func (b *Board) Get(p pos.XY) bool

func (*Board) Nums

func (b *Board) Nums() []int

func (*Board) Set

func (b *Board) Set(p pos.XY, open bool)

func (*Board) ShortestPath

func (b *Board) ShortestPath(from, to int) (int, bool)

Jump to

Keyboard shortcuts

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