| Copyright | (c) Eric Mertens 2022 |
|---|---|
| License | ISC |
| Maintainer | emertens@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Main
Description
https://adventofcode.com/2022/day/24
>>>:{:main + "#.######\n\ \#>>.<^<#\n\ \#.<..<<#\n\ \#>v.><>#\n\ \#<^v^^>#\n\ \######.#\n" :} 18 54
Documentation
Arguments
| :: UArray Coord Char | input map |
| -> Int | initial time step |
| -> Coord | starting location |
| -> Coord | ending location |
| -> Int | minimum travel time |
Find the shortest time from source to destination starting at a particular time step.
Arguments
| :: UArray Coord Char | input map |
| -> SearchState | |
| -> SearchState |
Given a set of locations the elf could be find the set the elf can be at next.