day4

package
v0.0.0-...-298479a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateID int = iota
	StateWinningNumbers
	StateAvailableNumbers
	StateLineEnd
)

Variables

This section is empty.

Functions

func Input

func Input() string

func Puzzle1

func Puzzle1(input string) int

func Puzzle2

func Puzzle2(input string) int

Types

type Game

type Game struct {
	ID        int
	Winning   []int
	Available []int
}

func New

func New(input string) []Game

func (*Game) SetAvailable

func (g *Game) SetAvailable(c rune, index int)

func (*Game) SetID

func (g *Game) SetID(c rune)

func (*Game) SetWinning

func (g *Game) SetWinning(c rune, index int)

Jump to

Keyboard shortcuts

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