Skip to content

gma/adventofcode-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022

These are my solutions to 2022's Advent of Code, which I'm working on in Python, with a spot of TDD.

There are two problems to solve each day, from 1 December up to (and including) Christmas day.

If you'd like to play around with my solutions and run the tests, you can checkout the code and then create a virtual environment like this:

python -m venv venv
source venv/bin/activate         # activates the virtual environment
pip install -r requirements.txt  # install testing tools in environment

Now you can run the tests for all my solutions with:

pytest

To run one of the solutions, change to the relevant directory and then run the code:

cd day01
pytest
python calories.py

The exercises