Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reynoldsbd/aoc
My personal AoC solutions, written in Rust
https://github.com/reynoldsbd/aoc
advent-of-code advent-of-code-2019 advent-of-code-rust aoc aoc2019 rust
Last synced: 17 days ago
JSON representation
My personal AoC solutions, written in Rust
- Host: GitHub
- URL: https://github.com/reynoldsbd/aoc
- Owner: reynoldsbd
- Created: 2019-12-02T01:16:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T21:14:35.000Z (about 5 years ago)
- Last Synced: 2024-10-29T15:49:05.943Z (2 months ago)
- Topics: advent-of-code, advent-of-code-2019, advent-of-code-rust, aoc, aoc2019, rust
- Language: Rust
- Homepage: https://adventofcode.com/
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
This repository contains my personal solutions for the Advent of Code
challenges, as well as some scripts that are handy for scaffolding and running
new challenges.# Running a Challenge
Use */scripts/Invoke-AocProject.ps1* to build and run a solution. By default,
the solution to the most recent challenge is run. This can be overridden using
the `Year` and `Day` parameters.Each solution is broken up into two binaries, *part1* and *part2*, which
correspond to the first and second parts of each AoC challenge. By default,
*Invoke-AocProject.ps1* will run *part1*. This can be overridden using the
`Part` parameter.# Scaffolding a New Challenge
Use */scripts/Create-AocProject.ps1* to create a skeleton project for a new
challenge. There are two ways to use this script:When used with `-Next`, this script will infer the "next" AoC challenge and
create the corresponding directory. For example, if the */2019/* directory
contains only *01/* and *02/* subdirectories (corresponding respectively to the
Day 1 and Day 2 challenges from AoC 2019), then this script will create a new
skeleton project under */2019/03*.Alternatively, you can manually specify which challenge to scaffold using the
`Year` and `Day` parameters. If a solution already exists for the specified day,
a warning is issued and you will have the option to overwrite that solution.In any case, the newly created project will be added to this repository's Cargo
workspace, making it easy and efficient to re-use code across solutions.