This projects includes a start script that will download the input file from adventofcode.com and run the solution against it.
-
Install Node (if you don't have it)
-
Clone the repo
-
Copy your session token from adventofcode.com
- go to adventofcode.com
- open dev tools (right click and select inspect element)
- select the Application tab
- copy the session cookie
-
Create a file called
.env
with this content
ADVENT_OF_CODE_SESSION=<Session token you copied in step 3>
- Run the script
run-solution.sh --year 2023 --day 1 --language <js|kts>