mirror of
https://github.com/Smaug123/AdventOfCode2022
synced 2025-10-09 11:38:40 +00:00
Day 16 (#26)
This commit is contained in:
@@ -218,6 +218,20 @@ module Run =
|
||||
if shouldWrite then
|
||||
printfn "%i" output
|
||||
|
||||
let day16 (partTwo : bool) (input : string) =
|
||||
let day16 = input.Split '\n'
|
||||
|
||||
if not partTwo then
|
||||
let output = Day16.part1 day16
|
||||
|
||||
if shouldWrite then
|
||||
printfn "%i" output
|
||||
else
|
||||
let output = Day16.part2 day16
|
||||
|
||||
if shouldWrite then
|
||||
printfn "%i" output
|
||||
|
||||
let allRuns =
|
||||
[|
|
||||
day1
|
||||
@@ -235,4 +249,5 @@ module Run =
|
||||
day13
|
||||
day14
|
||||
day15
|
||||
day16
|
||||
|]
|
||||
|
Reference in New Issue
Block a user