d8

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNextCell

func GetNextCell(r, c int, dir Direction) (nr, nc int)

func MustFindInStringGrid

func MustFindInStringGrid(lines []string, char byte) (r, c int)

Types

type Direction

type Direction int
const (
	Up Direction = iota
	Down
	Left
	Right
	UpLeft
	UpRight
	DownLeft
	DownRight
)

func DirForUDLR

func DirForUDLR(c string) Direction

func OppositeDir

func OppositeDir(dir Direction) Direction

func (Direction) String

func (dir Direction) String() string

Jump to

Keyboard shortcuts

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