My learning repo for Advent of Code 2024. My goal is to use Deno to learn it.
Caution
Spoilers Ahoy! My solutions are in main.ts
files, so peek at your own risk. I'm pretty slow, so you'll probably already be done with the puzzles if you want to see what I did.
Prerequisites
Run all the tests:
deno -R test
Run a specific puzzle to get the answers:
deno run <day>/main.ts
deno run scaffold:puzzle
deno run scaffold:puzzle <number>
This creates a new ./{puzzle number}
directory with puzzle defaults and adds the folder to the workspace deno.json
file.
- Folders numbered by day (e.g. Day 1 is
01/
) <day>/main.ts
-- Main run file<day>/main.test.ts
-- Main test file<day>/input.ts
-- Input helpers/module
- Disable GitHub Copilot
- Refrain from using ChatGPT and reference Deno docs directly
- If I get stuck, I may use ChatGPT, but it will be in a rubber duck format
- I will not use ChatGPT to try and solve a puzzle directly (i.e. no feeding inputs, puzzle context, etc.)
- Write tests first that satisfy the puzzle criteria
- Not overly concerned with efficiency/performance -- this is primarily for learning Deno
- May go back and refactor if I learn something about Deno that improves the code
Notes and aha moments collected in README.md
files for each puzzle I work through.