diff --git a/2015/src/main/scala/Day01.scala b/2015/src/main/scala/day01/Main.scala similarity index 68% rename from 2015/src/main/scala/Day01.scala rename to 2015/src/main/scala/day01/Main.scala index a295946..9710d95 100644 --- a/2015/src/main/scala/Day01.scala +++ b/2015/src/main/scala/day01/Main.scala @@ -1,7 +1,9 @@ +package day01 + import scala.io.Source.fromFile -object Day01 extends App { - val content = fromFile("inputs/day01").toList +object Main extends App { + val content = fromFile("src/main/scala/day01/input").toList def nextFloor(floor: Int, c: Char): Int = floor + (if (c == '(') 1 else -1) diff --git a/2015/inputs/day01 b/2015/src/main/scala/day01/input similarity index 100% rename from 2015/inputs/day01 rename to 2015/src/main/scala/day01/input