Skip to content

alexg-axis/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ba23cf9 · Dec 25, 2023
Dec 4, 2022
Nov 24, 2021
Dec 25, 2021
Dec 25, 2022
Dec 25, 2023
Dec 13, 2023
Dec 22, 2022
Nov 24, 2021
Dec 2, 2021
Dec 1, 2021
Nov 24, 2021
Nov 24, 2021
Nov 24, 2021
Nov 24, 2021

Repository files navigation

Advent of Code

My solutions for Advent of Code.

Structure

.
├── Makefile        # support scripts
├── README.md
└── scripts         # support scripts
│   ├── html2md.py  # convert a subsert of HTML to markdown
│   ├── init.sh     # initialize a puzzle
│   └── login.sh    # login to advent of code
└── 20xx            # a year of puzzles
    ├── 1
    ├── ...
    └── 25          # description, input and solution for each puzzle

Using the structure for yourself

The structure is generic enough, but built for macOS (although that specific logic can easily be exchanged).

  1. Copy the scripts directory and Makefile to a separate directory.
  2. To login using a session cookie from the Advent of Code website, run make login
  3. To initialize today's puzzle run make init
    • To initialize a specific puzzle, run AOC_YEAR=2020 AOC_MONTH=12 AOC_DAY=24 make init
  4. To run today's puzzle run make run
    • To run a specific puzzle, run AOC_YEAR=2020 AOC_MONTH=12 AOC_DAY=24 make run

An example using multiple languages can be found in 2020/1.

About

My solutions for Advent of Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published