WarningImHack3r / advent-of-code

My attempts on adventofcode.com

Home Page:https://adventofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code

Code of my attempts on adventofcode.com

Random tips

  • Each year is in its respective folder (seems obvious)
  • Run the inputs_downloader.py script to automatically download your current's year puzzle inputs
    • The script requires your session token (available from the website's cookies storage), stored as SESSION_TOKEN in a .env file at the project's root
    • Run python3 -m pip install -r requirements.txt before first execution
    • It only downloads available inputs (won't try to download a still locked puzzle input) if the current month is December, else it's gonna ask you the year you want
    • Also, it won't redownload an already existing input file
    • Inputs will be placed under [year]/inputs/input[day].txt

Additional tips for TypeScript

  • Don't forget to run pnpm i after clone to be able to run .ts files
  • Command to run any day[day].ts code: pnpm start -- /path/to/day[day].ts
    • Use the alternative pnpm run watch [...] command to rerun the file automatically after each change

About

My attempts on adventofcode.com

https://adventofcode.com


Languages

Language:Go 50.0%Language:TypeScript 45.5%Language:Python 4.6%