This repository contains my (definitely not scuff) solutions to the annual Advent of Code (AoC) puzzles, which can be found here.
In line with the wishes of AoC's creator, my puzzle inputs are not included in this repository, instead they are stored in a separate private repository and accessed via Git submodules. To run my solutions with your puzzle inputs, do the following:
- Create a private Git repository on a service such as GitHub or GitLab, and populate it with your puzzle inputs. The puzzle input for a given year and day should be located at
<year>/<day>.txt
, where<year>
is a 4 digit number and<day>
is a 2 digit number (add zero padding for days 1 to 9). An example directory structure is shown below:
├ 2023
│ ├ 01.txt
│ ├ 02.txt
│ └ 03.txt
└ 2024
├ 23.txt
├ 24.txt
└ 25.txt
- Clone this git repository:
git clone https://github.com/CCJK123/Advent-of-Code
- Modify
.gitmodules
to contain the remote URL to the Git repository you just created. Its file content should look similar to the following:
[submodule "inputs"]
path = inputs
url = <your_repository_url_here>
- Fetch puzzle input files from your private Git repository:
git submodule init
git submodule update