From d0c5139ded1d20763e5dee459546758d6719898c Mon Sep 17 00:00:00 2001 From: Tristan Date: Sun, 3 Dec 2023 20:51:08 +0100 Subject: [PATCH] Update readme --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0deefac..f0a9a26 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,19 @@ folders for each year in the `./src` folder (for example `./src/Y21`, `./src/Y23 - Run `./vendor/bin/php-cs-fixer fix` to run (and fix) code style checks. ## 🧩 Add a new puzzle/solution +- Run `./aoc new {day?} {year?}` to create a new puzzle/solution. + +
+ Manual setup + - Create a directory in `./data/Y??/day?` with the correct name. - Create `example.txt` with the example values from the puzzle. - If there are different examples for part 1 and part 2, create `example-part1.txt` and `example-part2.txt`. - Create `data.txt` with your personal input. - (optional) Create `puzzle.md` with the puzzle description. You can use [this plugin](https://github.com/kfarnung/aoc-to-markdown) to easily convert the puzzle to markdown. -- Create a new class in the `src/Y??/Day??.php` directory and make sure it has the structure defined below. +- Create a new class in the `Day??.php` directory and make sure it has the structure defined below. + +
Solution structure