day_19

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: 5 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 Blueprint

type Blueprint struct {
	ID    int
	Costs map[Resource]Cost
}

func (Blueprint) CanBuild

func (bp Blueprint) CanBuild(res Resource, with map[Resource]int) bool

type Cost

type Cost map[Resource]int

func (Cost) RankDesc

func (c Cost) RankDesc() []Resource

type Resource

type Resource int
const (
	None     Resource = 0
	Ore      Resource = 1
	Clay     Resource = 2
	Obsidian Resource = 3
	Geode    Resource = 4
)

func (Resource) Prev

func (r Resource) Prev() Resource

func (Resource) String

func (r Resource) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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