day_09

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1()

func Part2

func Part2()

Types

type Dir

type Dir string
const (
	Up    Dir = "U"
	Down  Dir = "D"
	Right Dir = "R"
	Left  Dir = "L"
)

func ParseDir

func ParseDir(s string) (Dir, error)

type Move

type Move struct {
	Dir   Dir
	Count int
}

func ParseMove

func ParseMove(s string) (Move, error)

func ParseMoves

func ParseMoves(in string) ([]Move, error)

type Rope

type Rope struct {
	Head grid.Point
	Tail grid.Point
}

type RopeXL

type RopeXL struct {
	Head  grid.Point
	Inter []grid.Point
	Tail  grid.Point
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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