advent-of-code-2020

command module
v0.0.0-...-15bd2d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 9 Imported by: 0

README

Advent of Code 2020

This repository tracks puzzles for Advent of Code 2020. Go play!

If you're really ambitious, try doing each puzzle in a different language.

Running

For solutions implemented in Go, which is all of them at the time of this writing, you can run the program by changing to the directory of the day you wish to run and running

go run . < input.txt

unless I've accidentally named the input file something else.

Alternatively, there's a naive Makefile that, as of this writing, assumes all exercises are completed in Go and attempts to run them all. Just run make in the project root.

Caveats

This is slapdash code, with only as much effort put into it as required to get the right answer according to Advent of Code. There are no tests unless debugging is required. Advent of Code is as much an exercise for me to not get hung up on always making pristine production quality code when the situation does not call for it, instead optimizing for speed of implementation here, without sacrificing too much readability.

To Do

  • Merge old Advent of Code repository into this one, or vice versa. (Remember to update the Go module name.)
  • Re-jigger puzzles to be callable as functions from a Go driver program. Return a tuple of answers, and optionally a description.
  • Run all puzzles from Go driver, and render results as text or JSON.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
leaderboard
check-leaderboard will get the lastest state of a private leaderboard, given a leaderboard ID and a session token.
check-leaderboard will get the lastest state of a private leaderboard, given a leaderboard ID and a session token.
puzzles
2020/day-01
This is a program that will compute the answers to both parts of the Day 1 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 1 Advent of Code 2020 puzzle.
2020/day-02
This is a program that will compute the answers to both parts of the Day 2 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 2 Advent of Code 2020 puzzle.
2020/day-03
This is a program that will compute the answers to both parts of the Day 3 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 3 Advent of Code 2020 puzzle.
2020/day-04
This is a program that will compute the answers to both parts of the Day 4 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 4 Advent of Code 2020 puzzle.
2020/day-05
This is a program that will compute the answers to both parts of the Day 5 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 5 Advent of Code 2020 puzzle.
2020/day-06
This is a program that will compute the answers to both parts of the Day 6 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 6 Advent of Code 2020 puzzle.
2020/day-07
This is a program that will compute the answers to both parts of the Day 7 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 7 Advent of Code 2020 puzzle.
2020/day-08
This is a program that will compute the answers to both parts of the Day 8 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 8 Advent of Code 2020 puzzle.
2020/day-09
This is a program that will compute the answers to both parts of the Day 9 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 9 Advent of Code 2020 puzzle.
2020/day-10
This is a program that will compute the answers to both parts of the Day 10 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 10 Advent of Code 2020 puzzle.
2020/day-11
This is a program that will compute the answers to both parts of the Day 11 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 11 Advent of Code 2020 puzzle.
2020/day-12
This is a program that will compute the answers to both parts of the Day 12 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 12 Advent of Code 2020 puzzle.
2020/day-13
This is a program that will compute the answers to both parts of the Day 13 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 13 Advent of Code 2020 puzzle.
2020/day-14
This is a program that will compute the answers to both parts of the Day 14 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 14 Advent of Code 2020 puzzle.
2020/day-15
This is a program that will compute the answers to both parts of the Day 15 Advent of Code 2020 puzzle.
This is a program that will compute the answers to both parts of the Day 15 Advent of Code 2020 puzzle.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL