https://github.com/razerm/advent-of-code-2023
https://github.com/razerm/advent-of-code-2023
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/razerm/advent-of-code-2023
- Owner: RazerM
- License: mit
- Created: 2023-12-04T20:03:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-28T14:55:25.000Z (over 1 year ago)
- Last Synced: 2025-01-29T15:35:09.636Z (4 months ago)
- Language: Python
- Size: 110 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
```bash
git clone https://github.com/RazerM/advent-of-code-2023
cd advent-of-code-2023
python3 -m venv --prompt aoc2023 .venv
source .venv/bin/activate
pip install -e .
```# CLI
Set the `AOC_SESSION` environment variable to the value of your
https://adventofcode.com `session` cookie. It may also be added to an `.env`
file.## Manual Commands
```bash
aoc2023 download 1 input/1.txt
``````bash
aoc2023 run 1 input/1.txt
```## Automatic Commands
These commands assume an `input` directory is being used. Use `prepare` to
download all available input files and create any missing python modules in
`src/aoc2023` from a template.```bash
aoc2023 prepare
```Run the solution for the current day (or provide it as an argument). Uses
the corresponding input file automatically.```bash
aoc2023 autorun [day]
```