Update readme
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tristan 2023-12-03 20:51:08 +01:00
parent 3222dad47d
commit d0c5139ded
Signed by: trizz
SSH Key Fingerprint: SHA256:Xsd2dTN+ZC3OZWfvuKIDMQ/1lWicuINSEPgRQw/CJT8

View File

@ -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. - Run `./vendor/bin/php-cs-fixer fix` to run (and fix) code style checks.
## 🧩 Add a new puzzle/solution ## 🧩 Add a new puzzle/solution
- Run `./aoc new {day?} {year?}` to create a new puzzle/solution.
<details>
<summary>Manual setup</summary>
- Create a directory in `./data/Y??/day?` with the correct name. - Create a directory in `./data/Y??/day?` with the correct name.
- Create `example.txt` with the example values from the puzzle. - 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`. - 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. - 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. - (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.
</details>
<details> <details>
<summary>Solution structure</summary> <summary>Solution structure</summary>