Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 712 Bytes

File metadata and controls

37 lines (30 loc) · 712 Bytes

aoc-2024

Advent of Code 2024 solved with typescript using the bun runtime.

Installation

To install dependencies:

bun install

Running

To run:

bun run day "<day_number_>"

Test data goes in testdata/<day_number>.txt. Real data goes in testdata/<day_number>.txt.

Fetching Input Data

To fetch input from website, put your session cookie in .env:

AOC_SESSION="<session_key>"

Make sure to not include "session=" in the key

You can then use this to load input data:

bun run load "<day_number>"

Generateing Solution Files

To generate a new solution file, run

bun run new "<day_number>"

To change the template, edit solutions/0.ts