User:Cscott/Advent Of Code 2023/Day 21

Part 1:

  • Example: 42
  • Full input: 3751

Part 2:

  • Example: The time allocated for running scripts has expired.
  • Full input: The time allocated for running scripts has expired.

Source: Module:User:Cscott/Advent Of Code 2023/Day 21

(I'm using a lua script I wrote for lua-turtle to bundle up my modules for scribunto, so scroll all the way to the end to find the "real" code.)

Input: