Skip to content

atrnh/adventofcode2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022

Solutions

Solutions are in __main__py files so if you want to run my solutions, use python3 -m (ex.: python3 -m day1).

Utilities

👀 Check out utils.py — you might find something useful in there. Probably the most useful function is get_puzzle_input_for_day which will download your puzzle input for you and return a string. It requires a bit of setup though (instructions below).

Setup for get_puzzle_input_for_day

  1. Log into Advent of Code and copy your session cookie from the browser (Dev Tools > Application > Storage > Cookies. Then copy the value of the cookie named session).
  2. Make a copy example_env.py and name it env.py.
  3. Replace the SESSION variable in env.py with the session cookie you copied.

...or, if you're lazy, just replace line 21 in utils.py with SESSION = <your session cookie>.

About

Solutions for Advent of Code 2022.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages