diff options
author | HJ <thechairman@thechairman.info> | 2023-12-02 00:10:29 -0500 |
---|---|---|
committer | HJ <thechairman@thechairman.info> | 2023-12-02 00:10:29 -0500 |
commit | a82877a093f43c11b298f2a59374b53595b40f53 (patch) | |
tree | 8948684c1c42237320c8c8704849fea84eb5663d /aoc2023/src | |
parent | a2bcd6b53e5b94ad4d6b9eb3e847dae210db1704 (diff) | |
download | gleam_aoc-a82877a093f43c11b298f2a59374b53595b40f53.tar.gz gleam_aoc-a82877a093f43c11b298f2a59374b53595b40f53.zip |
prep for day 2
Diffstat (limited to 'aoc2023/src')
-rw-r--r-- | aoc2023/src/day2/.gitignore | 1 | ||||
-rw-r--r-- | aoc2023/src/day2/solve.gleam | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/aoc2023/src/day2/.gitignore b/aoc2023/src/day2/.gitignore new file mode 100644 index 0000000..ae40cea --- /dev/null +++ b/aoc2023/src/day2/.gitignore @@ -0,0 +1 @@ +input.txt
\ No newline at end of file diff --git a/aoc2023/src/day2/solve.gleam b/aoc2023/src/day2/solve.gleam new file mode 100644 index 0000000..5f16a12 --- /dev/null +++ b/aoc2023/src/day2/solve.gleam @@ -0,0 +1,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("2") + case part { + First -> + part1(input) + |> adglent.inspect + |> io.println + Second -> + part2(input) + |> adglent.inspect + |> io.println + } +} |