day07 package
Subpackages
Submodules
day07.day7 module
day7 solution.
- class day07.day7.Hand(cards: str, bet: int)[source]
Bases:
object
Simple hand class, uses cards_inted and of_a_kind for sorting.
- CARD_MAPPING: ClassVar[str] = '23456789TJQKA'
- bet: int
- cards: str
- cards_inted: list[int]
- of_a_kind: list[int]
- class day07.day7.HandPart2(cards: str, bet: int)[source]
Bases:
Hand
Part two; implements joker rule.
- CARD_MAPPING: ClassVar[str] = 'J23456789TQKA'
Module contents
day07 solution.