day4

package
v0.0.0-...-552ec1b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(input *advent.Input) (int, error)

func B

func B(input *advent.Input) (int, error)

func CalculateScore

func CalculateScore(board *Board, draw mapset.Set, lastDrawn int) int

Types

type BingoGame

type BingoGame struct {
	Draw      []int
	Boards    []*Board
	NumBoards int
}

func ParseBingoGame

func ParseBingoGame(input *advent.Input) (*BingoGame, error)

type Board

type Board struct {
	Rows    [5]mapset.Set
	Columns [5]mapset.Set
	All     mapset.Set
}

func EmptyBoard

func EmptyBoard() *Board

func (*Board) IsWon

func (b *Board) IsWon(draw mapset.Set) bool

Jump to

Keyboard shortcuts

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