Day 10 #11

Merged
patrick merged 6 commits from day10 into main 2023-12-10 13:49:04 +00:00
Showing only changes of commit 13505a0cdf - Show all commits

View File

@@ -88,7 +88,7 @@ module Day10 =
let mutable pointB =
let pos = ofRowAndCol lineLength (startLine - 1) startCol
match s.[pos] with
match if pos >= 0 then s.[pos] else 'n' with
| '|'
| '7'
| 'F' -> pos
@@ -96,7 +96,7 @@ module Day10 =
let pos = ofRowAndCol lineLength (startLine + 1) startCol
match s.[pos] with
match if pos < s.Length then s.[pos] else 'n' with
| '|'
| 'L'
| 'J' -> pos
@@ -104,7 +104,7 @@ module Day10 =
let pos = ofRowAndCol lineLength startLine (startCol + 1)
match s.[pos] with
match if pos < s.Length then s.[pos] else 'n' with
| '-'
| 'J'
| '7' -> pos