Skip to content

Library for helpers and solutions to advent of code 2022

Notifications You must be signed in to change notification settings

willgorick/advent22

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 html
  • download - stop execution after downloading files
  • dry - 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.

About

Library for helpers and solutions to advent of code 2022

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages