Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zadr/aoc
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/zadr/aoc
- Owner: zadr
- Created: 2022-12-02T06:12:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-09T07:51:52.000Z (about 1 year ago)
- Last Synced: 2024-10-16T02:56:16.618Z (3 months ago)
- Language: Swift
- Size: 77.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Hello
Hey#### So what is this
My lil environment for managing [Advent Of Code](https://adventofcode.com/) solutions. I call it `aoc` for hopefully obvious reasons.#### What does it do
Manages all my Advent of Code solutions. Lets me run any one of them on the fly via `--day` and `--year` parameters, otherwise picks the most recent solution to run.`swift run aoc --begin` to prepare files for the next solution automatically.
Through the `swift run aoc --real-data` flag, `aoc` can switch to solution input instead of sample input.
And, `aoc` will show how long it takes for a solution to run automatically.
#### How does `aoc` know what to do?
Command line arguments. And the Objective-C runtime.Every solution in `aoc` follows a strict naming convention for classes, and anything following this pattern will be loaded automatically. The pattern is: `AOC_` + `year` + `_` + `day`, or as an example, `AOC_2025_25`.
Informally, I also have a `+Data.swift` extensions to hold real and sample inputs.
#### Anything else
Consider running in release mode `swift run --configuration release aoc --real-data`.If you clone this repo (`git clone [email protected]:zadr/aoc.git`), cd into it (`cd aoc`), and `swift run aoc --help` you'll get the full help menu.