https://github.com/blakek/advent-of-code-2022
Solutions to Advent of Code 2022
https://github.com/blakek/advent-of-code-2022
advent-of-code advent-of-code-2022 aoc awk
Last synced: about 1 month ago
JSON representation
Solutions to Advent of Code 2022
- Host: GitHub
- URL: https://github.com/blakek/advent-of-code-2022
- Owner: blakek
- Created: 2022-12-01T14:22:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-30T18:06:05.000Z (about 1 year ago)
- Last Synced: 2025-11-12T13:23:45.792Z (9 months ago)
- Topics: advent-of-code, advent-of-code-2022, aoc, awk
- Language: Awk
- Homepage: https://adventofcode.com/2022/
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Advent of Code - 2022](https://adventofcode.com/2022)
> A list of solutions for the Advent of Code 2022.
:warning: The daily README files contain the answers to the puzzles. I wouldn't call them "spoilers", but you might want to avoid them if you want to solve the puzzles yourself.
If you're not familiar with [Advent of Code](https://adventofcode.com), it's a list of programming puzzles released every year. Most days in December, a new puzzle is released. Each puzzle has 2 parts, and you can solve them however you want.
This year, I'm mostly using common Unix tools like `awk` to show how powerful these tools can be.
## Usage
This repository contains an `aoc` script that can be used to run the solutions. Here's some example usages:
```bash
# Run the current day's solutions (both parts, in the first language found)
./aoc
# Run the current day's solution against the example input
./aoc --test
# Run the solutions for December 5th
./aoc --day 5
# Run the part 2 solution for December 1st using TypeScript
./aoc --day 1 --part 2 --language typescript
```
Also, there's a `--help` flag with all the options.
If you want to make your own repo, there's also a `setup.bash` script you can reference thats 5 lines of code.