igilham / aoc2020go

Advent of Code 2020 in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2020 in Go

An implementation of the Advent of Code for 2020.

Usage

There is an application in the root directory for running the scenarios. The -a flag is used to select a scenario in the range of 1 to 25. The application reads from standard input for test data, copies of which are provided in subdirectories.

From the root you can run a scenario using go run main.go -a SCENARIO <DIRECTORY/input.txt. For example, to run the third scenario, use go run main.go -a 3 <advent03/input.txt.

Testing

There are a few unit tests in some packages. They can be run with go test PACKAGE_PATH, E.g. go test github.com/igilham/aoc2020go/advent04.

About

Advent of Code 2020 in Go

License:ISC License


Languages

Language:Go 100.0%