day7

package
v0.0.0-...-c2f6671 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

This section is empty.

Variables

This section is empty.

Functions

func CheckHandType

func CheckHandType(hand string) int

CheckHandType checks a hand of cards and returns the highest value type found in the hand

func CheckHandTypeWithJokers

func CheckHandTypeWithJokers(hand string) int

CheckHandTypeWithJokers checks a hand of cards and returns the highest value type found in the hand, with jokers

func Problem1

func Problem1()

func Problem2

func Problem2()

Types

type Hand

type Hand struct {
	Cards    string
	Winnings int
}

func ParseHands

func ParseHands(filepath string) []Hand

Jump to

Keyboard shortcuts

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