diff --git a/src/main/scala/eu/sim642/adventofcode2024/Day11.scala b/src/main/scala/eu/sim642/adventofcode2024/Day11.scala index 3b0e4120..364a7607 100644 --- a/src/main/scala/eu/sim642/adventofcode2024/Day11.scala +++ b/src/main/scala/eu/sim642/adventofcode2024/Day11.scala @@ -38,8 +38,11 @@ object Day11 { lazy val input: String = scala.io.Source.fromInputStream(getClass.getResourceAsStream("day11.txt")).mkString.trim + val part1Blinks = 25 + val part2Blinks = 75 + def main(args: Array[String]): Unit = { - println(countBlinkedStones(parseStones(input), 25)) - println(countBlinkedStones(parseStones(input), 75)) + println(countBlinkedStones(parseStones(input), part1Blinks)) + println(countBlinkedStones(parseStones(input), part2Blinks)) } } diff --git a/src/test/scala/eu/sim642/adventofcode2024/Day11Test.scala b/src/test/scala/eu/sim642/adventofcode2024/Day11Test.scala index 812f22f3..400ff4b4 100644 --- a/src/test/scala/eu/sim642/adventofcode2024/Day11Test.scala +++ b/src/test/scala/eu/sim642/adventofcode2024/Day11Test.scala @@ -11,14 +11,14 @@ class Day11Test extends AnyFunSuite { test("Part 1 examples") { assert(countBlinkedStones(parseStones(exampleInput), 1) == 7) assert(countBlinkedStones(parseStones(exampleInput2), 6) == 22) - assert(countBlinkedStones(parseStones(exampleInput2), 25) == 55312) + assert(countBlinkedStones(parseStones(exampleInput2), part1Blinks) == 55312) } test("Part 1 input answer") { - assert(countBlinkedStones(parseStones(input), 25) == 217812) + assert(countBlinkedStones(parseStones(input), part1Blinks) == 217812) } test("Part 2 input answer") { - assert(countBlinkedStones(parseStones(input), 75) == 259112729857522L) + assert(countBlinkedStones(parseStones(input), part2Blinks) == 259112729857522L) } }