From 2996ab249a6ae29b2644061c366f88c2157652f2 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Mon, 3 Mar 2025 02:38:56 +0100 Subject: feat: Add usage instructions --- 2024/OCaml/README.md | 9 ++++----- 2024/PHP/README.md | 11 +++++++++++ 2024/PHP/day_04/part_01.php | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 2024/PHP/README.md (limited to '2024') diff --git a/2024/OCaml/README.md b/2024/OCaml/README.md index 96db988..caa88fe 100644 --- a/2024/OCaml/README.md +++ b/2024/OCaml/README.md @@ -1,22 +1,21 @@ -# Advent of Code 2024 +# OCaml 2024 ## Getting Started ### How to Build ```sh -dune build +task build ``` ### How to Run ```sh -dune exec AoC_2024 +task run ``` ### How to Test ```sh -dune runtest +task test ``` - diff --git a/2024/PHP/README.md b/2024/PHP/README.md new file mode 100644 index 0000000..6aeb9d6 --- /dev/null +++ b/2024/PHP/README.md @@ -0,0 +1,11 @@ +# PHP 2024 + +## Getting Started + +### How to Run + +Run the php script directly, e.g. + +```sh +php day_XX/part_YY.php +``` diff --git a/2024/PHP/day_04/part_01.php b/2024/PHP/day_04/part_01.php index 250da0c..ae67a4f 100644 --- a/2024/PHP/day_04/part_01.php +++ b/2024/PHP/day_04/part_01.php @@ -5,7 +5,7 @@ declare(strict_types=1); spl_autoload_register(fn(string $className) => require "{$className}.php"); // Assumes executed from workspace root -$input = new Input('input/day_04.txt'); +$input = new Input('../_input/day_04.txt'); if ($input->contents === "") { throw new RuntimeException("File not found"); } -- cgit v1.2.3