aboutsummaryrefslogtreecommitdiff
path: root/aoc2023/src/day17/solve.gleam
blob: 5289ce9b3f4627df040e1f1b99b4f3ff9ee26fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import adglent.{First, Second}
import gleam/io

pub fn part1(input: String) {
  todo as "Implement solution to part 1"
}

pub fn part2(input: String) {
  todo as "Implement solution to part 2"
}

pub fn main() {
  let assert Ok(part) = adglent.get_part()
  let assert Ok(input) = adglent.get_input("17")
  case part {
    First ->
      part1(input)
      |> adglent.inspect
      |> io.println
    Second ->
      part2(input)
      |> adglent.inspect
      |> io.println
  }
}