Advent of Code 2022

Setup

The following command creates the two .rb files and downloads the input file.

  • Create .session_token file with a session token

$ ./setup (<year>) <day>

Example:

$ ./setup 1

Or:

$ ./setup 2020 1

Running

The following command runs the approiate problem code with the given input, times the execution, and saves all stdout to a log file in the logs dir.

$ ./advent (<year>) <problem> <input file>

Example:

$ ./advent 1-1 1.txt

Or:

$ ./advent 2020 1-1 1.txt