day_24

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func P

func P(x, y int) grid.Point

func Part1

func Part1()

func Part2

func Part2()

Types

type Blizzard

type Blizzard struct {
	Direction rune
	Pos       grid.Point
}

type Finder

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

func NewFinder

func NewFinder(g *Grid, maxIter int) *Finder

func (*Finder) Find

func (f *Finder) Find() int

type Grid

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

func (*Grid) Clone

func (g *Grid) Clone() *Grid

func (*Grid) Hash

func (g *Grid) Hash(pos grid.Point, iter int) string

func (*Grid) Mirrored

func (g *Grid) Mirrored() *Grid

func (*Grid) Move

func (g *Grid) Move(n int)

func (*Grid) OpenNeighbours

func (g *Grid) OpenNeighbours(p grid.Point) []grid.Point

func (*Grid) StartEnd

func (g *Grid) StartEnd() (start, end grid.Point)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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