From 6c152a6aaef0accac0d516830a4955c994fc294b Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Thu, 1 Dec 2022 20:00:08 +1030 Subject: [PATCH] remove end Elf --- 2022/day1.scala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/2022/day1.scala b/2022/day1.scala index 7d586d8..0e0585b 100644 --- a/2022/day1.scala +++ b/2022/day1.scala @@ -1,6 +1,9 @@ import scala.collection.mutable.ArrayBuffer import scala.io.Source +val filename = "day1-input" + + class Elf: var foodCalories = List[Int]() var totalCalories = 0 @@ -8,10 +11,6 @@ class Elf: def calculateTotalCalories(): Int = totalCalories = foodCalories.sum totalCalories -end Elf - - -val filename = "day1-input" @main def main() =