AdventOfCode

Files in 2023/ of tip
Login

Files in directory /2023 from the latest check-in


Advent of Code 2023

Ashby's solutions using swift, with each day being built as a small CLI app with two sub-commands for "part1" and "part2".

Shouldn't need anything but modern swift 5.9+ from xcode on Sonoma or higher hopefully. Specifically swift --version` returns this for me on an M1 Air:

swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx14.0
swift run aocli day<XX> part<Y> ./inputs/day1

Where: - <XX> is the left-zero padded day number - <Y> is either 1 or 2

Puzzle inputs are expected to be a plain text file in ascii encoding. There is a helper utility to download these inputs automatically:

swift run aocli utils download --day 1