From 8ff2c5016d4359c4d5d583c7fc78a66f296bdebc Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Thu, 4 Dec 2025 01:50:23 +0100 Subject: feat(2025d3p1): create skeleton --- 2025/ocaml/lib/application/d03p01.ml | 1 + 2025/ocaml/lib/application/d03p01.mli | 4 ++++ 2025/ocaml/lib/domain/d03p01.ml | 0 2025/ocaml/lib/presentation/cli.ml | 4 ++++ 4 files changed, 9 insertions(+) create mode 100644 2025/ocaml/lib/application/d03p01.ml create mode 100644 2025/ocaml/lib/application/d03p01.mli create mode 100644 2025/ocaml/lib/domain/d03p01.ml diff --git a/2025/ocaml/lib/application/d03p01.ml b/2025/ocaml/lib/application/d03p01.ml new file mode 100644 index 0000000..26319df --- /dev/null +++ b/2025/ocaml/lib/application/d03p01.ml @@ -0,0 +1 @@ +let solve _ () = failwith "not started" diff --git a/2025/ocaml/lib/application/d03p01.mli b/2025/ocaml/lib/application/d03p01.mli new file mode 100644 index 0000000..85f7e78 --- /dev/null +++ b/2025/ocaml/lib/application/d03p01.mli @@ -0,0 +1,4 @@ +val solve : string -> unit -> int +(** [solve input ()] is the solution for the first part of the third day of advent of code 2025 for [input]. + The solution for an empty input is 0. + Requires: [input] to be a string. *) diff --git a/2025/ocaml/lib/domain/d03p01.ml b/2025/ocaml/lib/domain/d03p01.ml new file mode 100644 index 0000000..e69de29 diff --git a/2025/ocaml/lib/presentation/cli.ml b/2025/ocaml/lib/presentation/cli.ml index 6f5a548..5863d21 100644 --- a/2025/ocaml/lib/presentation/cli.ml +++ b/2025/ocaml/lib/presentation/cli.ml @@ -16,6 +16,10 @@ let run_day _ = function run_solver "D02P01" Application.D02p01.solve filepath ; run_solver "D02P02" Application.D02p02.solve filepath ; 0 + | 3 -> + let filepath = "../_input/day_03.txt" in + run_solver "D03P01" Application.D03p01.solve filepath ; + 0 | _ -> failwith "day not implemented" -- cgit v1.2.3