Skip to content

Commit eff7b66

Browse files
committed
Compute the full sequences
1 parent 5fdbcfe commit eff7b66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

day21/src/day21.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def shortestProgram(startState: State, goal: String): String =
106106
val input = Source.fromFile(path).getLines.toList
107107

108108
for line <- input do
109-
// val pads = List(Pad(PadType.Dir), Pad(PadType.Dir), Pad(PadType.Dir), Pad(PadType.Num))
110-
val pads = List(Pad(PadType.Num))
109+
val pads = List(PadType.Dir, PadType.Dir, PadType.Dir, PadType.Num).map(Pad(_))
111110
val shortest = shortestProgram(State(pads), line)
112111
println(s"$shortest")

0 commit comments

Comments
 (0)