day16.lib package
Submodules
day16.lib.cells module
Cell classes.
- class day16.lib.cells.Cell(contents: str)[source]
Bases:
ABC
Abstract cell class.
- CELL_TYPES: Dict[str, Type[Cell]] = {'-': <class 'day16.lib.cells.DashCell'>, '.': <class 'day16.lib.cells.DotCell'>, '/': <class 'day16.lib.cells.ForwardSlashCell'>, '\\': <class 'day16.lib.cells.BackSlashCell'>, '|': <class 'day16.lib.cells.PipeCell'>}
- contents: str
day16.lib.direction module
Direction class.
day16.lib.laser module
laser instance class.
day16.lib.parsers module
Parsers for input file.
day16.lib.world module
Well defined world classes.
- class day16.lib.world.SolvedWorld(num_rows: int, num_cols: int)[source]
Bases:
object
A solved world class, stores how many lasers are in each tile.
Module contents
library modules for day16.