Advent of Code 2023

My solutions to the Advent of Code 2023 in Julia

Inputs

Running

Problems can be solved from the REPL from the repository directory.

] activate . # equivalently: using Pkg; Pkg.activate(".")
using AdventOfCode2023
solve() # solves all implemented problems with my data
solve(2) # solves a specific day with my data
AdventOfCode2023.d01.solve(open("path/to/data/file")) # solves day 1 with a specified data file
AdventOfCode2023.d02.solve(IOBuffer("datastring")) # solves day 2 with a data string

Testing

To run all tests

] activate .
] test

To run specific tests for a specific day

using ReTest
using AdventOfCode2023
AdventOfCode2023.runtests() # All tests
AdventOfCode2023.d01.runtests() # Day 1 tests

Data

Plain-text input files are not included as they are not licensed for distribution. The data files encrypted with transcrypt are included for my convenience. Replace these files with your plain-text inputs to test.