about summary refs log tree commit diff
path: root/Day13.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Day13.cs')
-rw-r--r--Day13.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Day13.cs b/Day13.cs
index 47476e5..681126d 100644
--- a/Day13.cs
+++ b/Day13.cs
@@ -38,19 +38,18 @@ namespace aoc2019
 
         private void PrintBoard()
         {
-            foreach (var tile in board)
+            foreach (var ((x, y), value) in board)
             {
-                var (x, y) = tile.Key;
                 if (x < 0 || y < 0) continue;
                 Console.SetCursorPosition(x, y);
-                Console.Write(tile.Value switch
+                Console.Write(value switch
                 {
                     0 => " ",
                     1 => "|",
                     2 => "B",
                     3 => "_",
                     4 => ".",
-                    _ => tile.Value
+                    _ => value
                 });
             }
         }