Skip to content

BurgundyDev/aoc2022-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022 in Python

This repo contains my answers for Days 16 and up of AoC 2022. This is a result of my complete failure to do them on time in Rust and needing something I know more intimately.

My answers in Rust.

My answers in Kotlin.

Helper functions

Initialize:

When cd:ed into this repo, run;

$ python -m aoc

This will ask you for your session cookie (which can be found in the application tab in most browsers devtools when on adventofcode.com).

Usage:

In [day_nr].py:

from aoc import get_input

# get_input(x) returns a string of the complete input for day x of year specified in year.txt
data = get_input(1).splitlines()

for line in data:
    print(line)

About

Advent Of Code 2022 answers in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages