Crimes against code will be git committed
But hey, if you want to try it out, go for it.
Fork this repo, then
npm installIf you're trying to fork your own repo on github
You can't. Instead make a new one, clone, and push up to that.YEAR=2024
USER=betaorbust
git clone -b main --single-branch https://github.com/betaorbust/advent-of-code-base advent-of-code-$YEAR
cd advent-of-code-$YEAR
git remote set-url origin https://github.com/$USER/advent-of-code-$YEAR
git remote add upstream https://github.com/betaorbust/advent-of-code-base
git push origin main
git push --all- Run
npm run nextto scaffold a directory for the day's work and pull in the Part 1 problem. (If this is the first time you're running this, you'll be prompted to set up a session cookie and pick the year.) The day's Part 1 problem statement will be pulled intoproblem.md, the Input will be stored insolution.tsand apart1.tsandpart1.test.tsfile will be scaffolded out for you./ ├─ 01/ │ ├─ part1.ts │ ├─ part1.test.ts │ ├─ problem.md │ ├─ solution.ts - Update your
part1.test.tsfile with whatever test case the problem statement gives you and the expected answer. - Run
npm run test:watch ./01(or whatever day's directory you're on) to start up testing while you work on the solution. - Implement the solution in
part1.tsuntil you get the ✅ in your test. - Run
npm run day 01to print out the solved puzzle running your code against the Input for the day. - Submit your answer on the website 🎉
- Run
npm run nextto pull down and scaffold out part 2 in the same way.
This project is governed by the contained Code of Conduct.