day18

package
v0.0.0-...-5d524ee Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Day18 = runner.NewDay(18, parseInstructions, part1, part2)

Functions

This section is empty.

Types

type Instruction

type Instruction struct {
	Direction maps.Pos
	Length    int

	SwappedDirection maps.Pos
	SwappedLength    int
}

Instruction is a single instruction for the dig plan

func (Instruction) Swap

func (i Instruction) Swap() Instruction

type Tile

type Tile uint8
const (
	Empty Tile = iota
	Trench
	Lava
)

func (Tile) Colour

func (t Tile) Colour() color.Color

func (Tile) Rune

func (t Tile) Rune() rune

func (Tile) Valid

func (t Tile) Valid() bool

Jump to

Keyboard shortcuts

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