This repository contains my solutions to the Advent of Code 2022 challenges. I will try to have solutions for each day written in Rust, Python, and TypeScript. I'm using Advent of Code as a way to learn these languages, so I'm sure there will be some mistakes and bad practices.
The boilerplate code for each day is generated using my AoC template generator.
The easiest way to run the solutions is with my custom AoC Tool.
aoc r -d {day} -l {language}
Language can be one of rs
, py
, or ts
.
You will need to install the relevant language toolchain to run the solutions. Rust, Python, and Deno are required.
Running without tool
To run the Rust solutions, you need to have Rust installed.
Then, you can run the solutions using cargo run --bin aoc-XX
where XX
is the day number.
To run the Python solutions, you need to have Python installed.
Then, you can run the solutions using python3 -m XX/solution.py
where XX
is the day number.
To run the TypeScript solutions, you need to have Deno installed.
Then, you can run the solutions using deno run --allow-read XX/solution.ts
where XX
is the day number.