Howdy! Welcome to my 2022 Advent of Code repository!
In order to run your code in this repo, you will need to add a .env file with your session cookie from the advent of code site. To access this, login to your account at https://adventofcode.com/ and inspect the page, then grab the session cookie (this process will be slightly different depending on your browser). Once you've acquired the cookie, save it in your .env file in the format session={cookie}
In order to start actually working, you can copy the day0 folder, modifying the name to a new day{number} folder and simply add your solution to the solve() function inside the part1.py file.
By default, the input file will be automatically downloaded, as well as the raw html of the problem page, in case you want to view it using your IDE's live preview extension. These files will be found in the files/ folder within the day you're working on.
Command Line Arguments:
refresh- re-download the html (such as when you've solved part1 and want to read part2)lite- don't download the htmldownload- stop execution after downloading filesdry- run local tests but do not attempt to submit to advent website
This repository uses Python3. Attempting to run it with older Python will not work.