day16

package
v0.0.0-...-9c9a4a3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reverse

func Reverse(s string) string

Types

type Direction

type Direction int

type Map

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

func Parse

func Parse(s string) *Map

func (*Map) FindMax

func (m *Map) FindMax() int

func (*Map) PrintEnergised

func (m *Map) PrintEnergised()

func (*Map) Ray

func (m *Map) Ray(r, c int, coming Direction) int

func (*Map) Reset

func (m *Map) Reset()

type Mirror

type Mirror struct {
	R    int
	C    int
	Type byte
	// contains filtered or unexported fields
}

func (*Mirror) Print

func (m *Mirror) Print()

type Step

type Step struct {
	Mirror *Mirror
	Coming Direction
}

Jump to

Keyboard shortcuts

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