2024-12-21 21:03:50 +01:00
2024-12-02 13:33:22 +01:00
2024-12-21 21:03:50 +01:00
2024-12-01 14:31:59 +01:00
2024-12-21 21:03:50 +01:00
2024-11-27 10:10:41 +01:00
2024-12-14 17:14:09 +01:00
2024-12-08 20:05:00 +01:00
2024-11-27 10:10:41 +01:00
2024-12-20 14:40:52 +01:00
2024-12-01 14:31:59 +01:00
2024-12-02 13:33:22 +01:00
2024-12-20 14:40:52 +01:00
2024-12-02 14:48:31 +01:00
2024-11-27 10:10:41 +01:00

Advent of Code

Check runs Typescript version Runtime Bun

[LANGUAGE: TypeScript]

[RUNTIME: Bun]

Structure

Every solution is grouped by its year and day and (usually) consists of five files:

Filename Purpose
<year>/<day>/index.ts Has the solution. Exports two functions: solveFirst(string): number and solveSecond(string): number
<year>/<day>/index.test.ts Unit test using the example input and expected solution.
<year>/<day>/run.ts Basic run script: Loading the actual input and passing it into the two solve functions.
<year>/<day>/input.txt Input text from AOC.
<year>/<day>/<year>-<day>.run.xml IntelliJ/Webstorm runfile for run.ts using Bun.

Setup

To install dependencies:

bun install

To test all days:

bun run test

To create a new day-folder:

bun run copy.ts

To run a single day, first copy your input file from https://adventofcode.com/<year>/day/<day>/input into <year>/<day>/input.txt. Then run:

bun run <year>/<day>/run.ts
S
Description
No description provided
Readme
176 KiB
Languages
TypeScript 98.1%
HTML 1.8%
JavaScript 0.1%