day04 package
Subpackages
Submodules
day04.day4 module
Day 4 solution.
- class day04.day4.Card(input_string: str)[source]
Bases:
object
a card with winners and numbers we own.
- get_points() int [source]
Returns how many points the card is worth.
- Returns:
0 for no match, otherwise 2^(matches-1)
- Return type:
int
- have: set[int]
- id: int = 0
- winners: set[int]
Module contents
day04 solution.