day7

package
v0.0.0-...-c283eea Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1(hands []Hand) int

Part1 returns the total winnings

func Part2

func Part2(hands []Hand) int

Part2 returns the total winnings where 'J' cards are treated as jokers. Jokers are wildcards that make the strongest possible hand, but have the weakest strength when compared individually.

Types

type Hand

type Hand struct {
	// contains filtered or unexported fields
}

func LoadHands

func LoadHands(filename string) ([]Hand, error)

Jump to

Keyboard shortcuts

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