Documentation
move :: O -> Z -> Z Source #
Moves a Cartesian coordinate by one step in a direction.
parse :: String -> [Z] Source #
Parses a string as a 2-D grid centered around (0, 0)
, returning positions
with a #
character.
day22 :: (Enum a, Eq a) => a -> (a -> O -> O) -> (a -> a) -> a -> Int -> [Z] -> Int Source #
Returns all viral activity from an initial state.