diff options
author | Nat Lasseter <user@4574.co.uk> | 2023-12-14 00:11:34 +0000 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2023-12-14 00:11:34 +0000 |
commit | 31888017e03807a4f87b1028e20702be6972379f (patch) | |
tree | ae9cd7e8d3eb9b22eebb7b640b3f66b76997b473 | |
parent | a09db7c49822168c90c5c48477e434f32d7bf9ba (diff) |
Day 10 part 2 still WIP but more viable code?
-rw-r--r-- | day10/day10.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/day10/day10.java b/day10/day10.java index cf8eaa6..d9fb040 100644 --- a/day10/day10.java +++ b/day10/day10.java @@ -269,7 +269,8 @@ public class day10 { int crossings = 0; while (row >= 0) { - if (grid.get(row).get(col) == Tile.Horizontal) { + Tile t = grid.get(row).get(col); + if (t == Tile.Horizontal || t == Tile.LBend || t == Tile.FBend) { crossings += 1; } row -= 1; |