about summary refs log tree commit diff
path: root/Day8.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Day8.cs')
-rw-r--r--Day8.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Day8.cs b/Day8.cs
index 1666544..27182ad 100644
--- a/Day8.cs
+++ b/Day8.cs
@@ -1,20 +1,21 @@
-using aoc2019.lib;
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using aoc2019.lib;
 
 namespace aoc2019
 {
     internal sealed class Day8 : Day
     {
-        public override int DayNumber => 8;
-
         private readonly List<List<char>> photo;
+
         public Day8()
         {
             photo = Input.First().Chunk(25 * 6).Select(s => s.ToList()).ToList();
         }
 
+        public override int DayNumber => 8;
+
         public override string Part1()
         {
             var l = photo.OrderBy(layer => layer.Count(pixel => pixel == '0')).First();
@@ -36,4 +37,4 @@ namespace aoc2019
                 .Replace('1', 'x');
         }
     }
-}
+}
\ No newline at end of file