summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--day10/day10.java3
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;