User:Cscott/Advent Of Code 2023/Day 7

Part 1:

  • Example: 6440
  • Full input: 251287184

Part 2:

  • Example: 5905
  • Full input: 250757288

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

(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: