day07

package
v0.0.0-...-7a5bd7c Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Execute

func Execute(input string) (string, string, error)

Types

type ByCards

type ByCards []Hand

func (ByCards) Len

func (a ByCards) Len() int

func (ByCards) Less

func (a ByCards) Less(i, j int) bool

func (ByCards) Swap

func (a ByCards) Swap(i, j int)

type Hand

type Hand struct {
	Cards string
	Bid   string
	Joker bool
}

Jump to

Keyboard shortcuts

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