- create a new project day with the template and
toolkit.nu
toolkit init ocaml 2023 4
- go to one of the OCaml solution, e.g. with the
toolkit.nu
toolkit jump # and then type 'ocaml'
- create a local switch if not already done
opam switch create . --deps-only --with-test --with-doc
- install all dependencies to the switch
open dune-deps | lines | opam install $in -y
then you can
- run the tests with
dune test
- run the toplevel with
dune utop
- run the binary on some input
dune exec day_x <level> <input>
Note
level
will be eithergold
orsilver
input
will typically besilver.txt
,gold.txt
and my personal inputs should also be availableamtoine.txt