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
- Host: GitHub
- URL: https://github.com/panda4817/advent-of-code-python
- Owner: Panda4817
- Created: 2022-12-07T08:32:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-25T08:05:32.000Z (about 1 year ago)
- Last Synced: 2025-06-18T21:45:16.709Z (6 months ago)
- Topics: 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
- Language: Python
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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