day10 package
Subpackages
Submodules
day10.day10 module
day10 solution.
- day10.day10.calculate_s(start: Position, pipe_map: PipeMap) str[source]
Calculate what the “S” character is as a pipe.
We should have exactly two pipes going into us
- day10.day10.expand_pipe(character: str, is_loop: bool) tuple[str, str, str][source]
Expands a pipe character to big boi 3x3.
- day10.day10.flood_fill(pipe_map: PipeMap) int[source]
Flood fills a pipemap from one starting tile.
- Parameters:
pipe_map (PipeMap) – pipemap to fill
- Returns:
how many tiles were filled
- Return type:
int
- day10.day10.process_big_input_line(row: int, line: str) list[Pipe][source]
Process a single line of input.
Module contents
Day10 solution.