day14.lib package

Submodules

day14.lib.direction module

Direction class.

class day14.lib.direction.Direction(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: IntEnum

Cardinal directions.

East = 3
North = 0
South = 2
West = 1
next_direction_ccw() Direction[source]

If we are pointing west, the next direction ccw is south.

next_direction_cw() Direction[source]

If we are pointing west, the next direction clockwise is north.

Module contents

day14 library modules.