advent-of-code-2022

Version, currently main branch1 version
  • main branchlatestDec 5, 2024

github.com/wrejcodes/advent-of-code-2024

Tools and solutions for AoC 2022

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  advent-of-code-2022:
    github: wrejcodes/advent-of-code-2024
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
wrejcodes
Target
  • cli from cli/cli.cr

Dependencies

This version declares no dependencies.

README

advent-of-code-2024

Tooling & Solutions for Advent of Code 2024 problems

Compile CLI

CLI can be compiled via shards shards build

This will create an executable file in bin named cli

CLI

CLI currently supports:

  • scaffolding of a new solution folder structure with base solution file
  • running a solution against a given input file located within the solution folder

You can create a new solution folder by running the following command in the root directory

bin/cli new -f <folder_name>

You can run a solution against the sample input by running the following command in the root directory

bin/cli run -f <folder_name>

You can also run a solution against an arbitrary input file in solutions/<folder_name>/in/<input_name>.in with the following command in the root directory

bin/cli run -f <folder_name> -i <input_name>

You can also run a solution with debug enabled if the solution has additional debugging output (ex: solution 9)

bin/cli run -f 9 -i larger -d

Supported Systems

Currently MacOS (although not tested after some tweaks for windows) and Git BASH on Windows