From 049bb4b91e40e7bf2cbf80ce79daa2a0b5368193 Mon Sep 17 00:00:00 2001 From: wdhg Date: Sat, 2 Jan 2021 17:00:14 +0000 Subject: [PATCH] move day 01 to package --- 2015/src/main/scala/{Day01.scala => day01/Main.scala} | 6 ++++-- 2015/{inputs/day01 => src/main/scala/day01/input} | 0 2 files changed, 4 insertions(+), 2 deletions(-) rename 2015/src/main/scala/{Day01.scala => day01/Main.scala} (68%) rename 2015/{inputs/day01 => src/main/scala/day01/input} (100%) 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