File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
main/scala/eu/sim642/adventofcode2024
test/scala/eu/sim642/adventofcode2024 Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,11 @@ object Day11 {
3838
3939 lazy val input : String = scala.io.Source .fromInputStream(getClass.getResourceAsStream(" day11.txt" )).mkString.trim
4040
41+ val part1Blinks = 25
42+ val part2Blinks = 75
43+
4144 def main (args : Array [String ]): Unit = {
42- println(countBlinkedStones(parseStones(input), 25 ))
43- println(countBlinkedStones(parseStones(input), 75 ))
45+ println(countBlinkedStones(parseStones(input), part1Blinks ))
46+ println(countBlinkedStones(parseStones(input), part2Blinks ))
4447 }
4548}
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ class Day11Test extends AnyFunSuite {
1111 test(" Part 1 examples" ) {
1212 assert(countBlinkedStones(parseStones(exampleInput), 1 ) == 7 )
1313 assert(countBlinkedStones(parseStones(exampleInput2), 6 ) == 22 )
14- assert(countBlinkedStones(parseStones(exampleInput2), 25 ) == 55312 )
14+ assert(countBlinkedStones(parseStones(exampleInput2), part1Blinks ) == 55312 )
1515 }
1616
1717 test(" Part 1 input answer" ) {
18- assert(countBlinkedStones(parseStones(input), 25 ) == 217812 )
18+ assert(countBlinkedStones(parseStones(input), part1Blinks ) == 217812 )
1919 }
2020
2121 test(" Part 2 input answer" ) {
22- assert(countBlinkedStones(parseStones(input), 75 ) == 259112729857522L )
22+ assert(countBlinkedStones(parseStones(input), part2Blinks ) == 259112729857522L )
2323 }
2424}
You can’t perform that action at this time.
0 commit comments