Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rjelierse/adventofcode
All solutions for Advent of Code through the years
https://github.com/rjelierse/adventofcode
advent-of-code advent-of-code-2016 advent-of-code-2017 advent-of-code-2018 golang
Last synced: 11 days ago
JSON representation
All solutions for Advent of Code through the years
- Host: GitHub
- URL: https://github.com/rjelierse/adventofcode
- Owner: rjelierse
- Created: 2018-12-03T14:03:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-05T10:00:56.000Z (about 6 years ago)
- Last Synced: 2024-12-05T14:12:18.932Z (2 months ago)
- Topics: advent-of-code, advent-of-code-2016, advent-of-code-2017, advent-of-code-2018, golang
- Language: Go
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code
Monorepo for all AoC solutions
* [2018](./2018)
* [2017](./2017)
* [2016](./2016)## Set up new year
```sh
YEAR=2018
mkdir -p ${YEAR}
sed s/YEAR/${YEAR}/g main.tpl > ${YEAR}/main.go
for DAY in {01..25}; do
mkdir -p ${YEAR}/${DAY}
sed s/DAY/day${DAY}/g solve.tpl > ${YEAR}/${DAY}/solve.go
done
git add -N ${YEAR}
```## Create runtime
```sh
YEAR=2018
go build -o adventofcode-${YEAR} ./${YEAR}
```## Solve puzzle
```sh
YEAR=2018
DAY=01
./adventofcode-${YEAR} day${DAY} -input ${YEAR}/${DAY}/input.txt
```