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

https://github.com/panda4817/advent-of-code-python


https://github.com/panda4817/advent-of-code-python

advent-of-code advent-of-code-2015 advent-of-code-2016 advent-of-code-2017 advent-of-code-2018 advent-of-code-2019 advent-of-code-2020 advent-of-code-2022 python python3 python312

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Advent of Code - Python 3

## Create solution
- If this is a new year, add a new module called `year.py` under module `.txt` file (this will be ignored by git)
- Add tests in a submodule called `tests` under the year module
- In the `.py` add and implement `part1` and `part2` methods that both take `data` (string value) as an argument

## Run
- ```python main.py -y -d ```
- year_number corresponds to the specific year's puzzle you want to run
- day_number corresponds to the particular day in December that you want to run puzzles for
- Before running, make sure the `.txt` file is in the right module

## Test
- ```python -m unittest``` run all tests
- ```python -m unittest year/tests/tests_.py``` run specific test class

## Requirements

- Python 3.12
- See `requirements.txt` for external libraries