day02

package
v0.0.0-...-44539d3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1(input string) int

func Part2

func Part2(input string) int

Types

type Color

type Color struct {
	Red   bool `  @"red"`
	Blue  bool `| @"blue"`
	Green bool `| @"green"`
}

type CubeDraw

type CubeDraw struct {
	Count int    `@Int`
	Color *Color `@@`
	Comma bool   `@Comma?`
}

type Draw

type Draw struct {
	Cubes []*CubeDraw `@@* Next`
}

type Game

type Game struct {
	Id    int     `Game @Int Colon`
	Draws []*Draw `@@*`
}

type GameList

type GameList struct {
	Games []*Game `@@*`
}

Jump to

Keyboard shortcuts

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