def plan_todo
minebender-game@1.0.0.0 · solver.bend:475
import minebender-game@1.0.0.0/solver.bend as Solver
import Base
import minebender-game@1.0.0.0/types.bend as T
475
476def plan_todo(+c: T.Pos, pl: Plan, +ctx: Ctx) -> List<&2, Todo>:
477 match pl:
478 case Plan{+near, far, +nf, gq, base, +fuel, +relg}:
479 match ctx:
480 case Ctx{+w, +h, +n, rows, items}:
481 List.append(&2, Todo, gather(List.append(&2, T.Pos, linked(c, w, h, fuel, relg), gq), near),
482 List.append(&2, Todo, rot(far, spin(c, w, n, nf)), base))