Structure lifted form @abersnaze
This repo contains my starting code for Advent of Code and Coding Quest problems. These puzzles invove reading a large file of puzzle data.
To follow how the code was created these are the steps I've settled on:
- capturing the input in
examples*.txtandinput.txt. - copy
part1.pyfrom the previous day just to bootstrap the imports and basic input code. - change the code until it works.
- copy
part1.pytopart2.py. - change the code until it works.
- commit all files unchanged from the moment I got the answer.
I feel like this will leave a good record of how I handled the change in requirements from part 1 to 2.
The solution for each day is in two parts (1 & 2) and requires python3 to be installed
in general they can be run with ./part1.py input.txt
they generally print more than necessary but the answer is always on the final line.