This Repo contains the solutions and helpers I have created for doing the Advent of Code challenges.
- install go
- create a file at the top level of the repo called
aoc_cookie
- paste the value of your session cookie from the advent of code site into the file
go run ./cmd/aoc 2020 1
# or
go run ./cmd/aoc -year 2020 -day 1
go run ./cmd/aoc 2020
# or
go run ./cmd/aoc -year 2020
go run ./cmd/aoc
go run ./cmd/generate
go run ./cmd/generate 2020 1
# or
go run ./cmd/generate -year 2020 -day 1
If you want to use this repo as a starting point for your own solutions, you can fork it and then run the following command to remove all the solutions and generate the setup code for all the days.
go run ./cmd/cmd/generate -reset
go run ./cmd/generate -reset -year 2020
go run ./cmd/generate -reset -year 2020 -day 1