day07

package
v0.0.0-...-5d524ee Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Day07 = runner.NewStreamingDay(7, parseHands,
	solver(func(hand Hand) (Hand, error) { return hand, nil }),
	solver(withJokerCards),
).
	WithExpectedAnswers(250453939, 248652697)

Functions

This section is empty.

Types

type Hand

type Hand struct {
	Cards [5]uint8
	Bid   int
	Type  HandType
}

func (Hand) String

func (h Hand) String() string

type HandType

type HandType uint8
const (
	HighCard HandType = iota
	Pair
	TwoPair
	ThreeOfAKind
	FullHouse
	FourOfAKind
	FiveOfAKind
)

Jump to

Keyboard shortcuts

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