day16

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Day16 = runner.NewDay(16, parseContraption, part1, part2)
)

Functions

This section is empty.

Types

type Tile

type Tile uint8
const (
	Empty Tile = iota
	BackslashMirror
	ForwardSlashMirror
	VerticalSplitter
	HorizontalSplitter

	// Laser tracking flags
	NonLaserBits Tile = 7
	LaserDown    Tile = 2 << 2
	LaserUp      Tile = 2 << 3
	LaserLeft    Tile = 2 << 4
	LaserRight   Tile = 2 << 5
	LaserHead    Tile = 2 << 6
)

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