From 31888017e03807a4f87b1028e20702be6972379f Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Thu, 14 Dec 2023 00:11:34 +0000 Subject: Day 10 part 2 still WIP but more viable code? --- day10/day10.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1