Advent of Code 2020 🎄 Go Solutions by @elecay
😊
Twitter
I'm doing this challenge as an excuse to learn the basics about Golang, and of course, to get some fun. I will be learning the minimum necessary syntax to resolve each challenge. I expect that the quality of the code improves from one exercise to the next one.
Advent of Code is an online event created by Eric Wastl. Each year, starting on Dec 1st, an advent calendar of small programming puzzles are unlocked once a day at midnight (EST/UTC-5). Developers of all skill sets are encouraged to solve them in any programming language they choose!
After saving Christmas five years in a row, you've decided to take a vacation at a nice resort on a tropical island. Surely, Christmas will go on without you.
The tropical island has its own currency and is entirely cash-only. The gold coins used there have a little picture of a starfish; the locals just call them stars. None of the currency exchanges seem to have heard of them, but somehow, you'll need to find fifty of these coins by the time you arrive so you can pay the deposit on your room.
To save your vacation, you need to get all fifty stars by December 25th.
Collect stars by solving puzzles. Two puzzles will be made available on each day in the Advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!
Day | Part One | Part Two |
---|---|---|
Day 1: Report Repair | 🌟 | 🌟 |
Day 2: Password Philosophy | 🌟 | 🌟 |
Day 3: Toboggan Trajectory | 🌟 | 🌟 |
Day 4: Passport Processing | 🌟 | 🌟 |
Day 5: Binary Boarding | 🌟 | 🌟 |
Day 6: Custom Customs | 🌟 | 🌟 |
Day 7: Handy Haversacks | 🌟 | 🌟 |
Day 8: Handheld Halting | 🌟 | 🌟 |
Day 9: Encoding Error | 🌟 | 🌟 |
Day 10: Adapter Array | 🌟 | 🌟 |
Day 11: Seating System | 🌟 | 🌟 |
Day 12: Rain Risk | 🌟 | 🌟 |
Each day contains its own set of tests. To run them type go test ./...
.
Repository style by @adriennetacke