Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pgebert/advent-of-code-2022

Solutions for advent of code 2022 written in python.
https://github.com/pgebert/advent-of-code-2022

advent-of-code python

Last synced: 1 day ago
JSON representation

Solutions for advent of code 2022 written in python.

Awesome Lists containing this project

README

        

# Advent of Code 2022

[Advent of Code 2022](https://adventofcode.com/2022) solutions written in Python. 🚀

## Structure

The file structure is follows:

```
advent-of-code-2022
├── data # Contains the input files for each day
│ ├── day01
│ ├── day02
│ └── ...
├── problems # Implemented solutions for each day
│ ├── day01
│ ├── day02
│ └── ...
├── tests # Tests for each day
│ ├── day01
│ ├── day02
│ └── ...
├── utils # Utility methods to read in files and examples
├── setup.py # Package information
└── README.md
```

## Getting started

(Optional) Create a conda environment:

```console
foo@bar:~$ conda create -n adventOfCode2022
foo@bar:~$ conda activate adventOfCode2022
```

Install local package in editable mode:

```console
foo@bar:~$ cd advent-of-code-2022
foo@bar:~$ pip install -e .
```

Run tests:

```console
foo@bar:~$ python -m pytest .\tests\
```

Happy coding 🥳

![undraw_Santa_visit_re_oiwr](https://user-images.githubusercontent.com/6838540/145730655-94757ce0-4c98-4d60-ade5-fefd8590ecc3.png)