day7

package
v0.0.0-...-b0d99ec Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HighCard int = iota
	OnePair
	TwoPair
	ThreeOfAKind
	FullHouse
	FourOfAKind
	FiveOfAKind
)

Variables

This section is empty.

Functions

func Day7

func Day7(input string)

Types

type Card

type Card byte

func (Card) String

func (c Card) String() string

func (Card) Value

func (c Card) Value() int

func (Card) ValueJoker

func (c Card) ValueJoker() int

type Hand

type Hand struct {
	Index int
	Cards []Card
	Bid   int
}

func (Hand) String

func (h Hand) String() string

Jump to

Keyboard shortcuts

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