An open API service indexing awesome lists of open source software.

https://github.com/rettend/aoc-2024

2024 Advent of Code in TypeScript
https://github.com/rettend/aoc-2024

aoc aoc-2024 aoc-2024-in-typescript

Last synced: 2 months ago
JSON representation

2024 Advent of Code in TypeScript

Awesome Lists containing this project

README

        

# aoc-2024

Advent of Code 2024 solutions in TypeScript using Bun.

## Progress

| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
|||||||

[1](./src/day01/index.ts)
⭐⭐

|
|

[2](./src/day02/index.ts)
⭐⭐

|

[3](./src/day03/index.ts)
⭐⭐

|

[4](./src/day04/index.ts)
⭐⭐

|

[5](./src/day05/index.ts)
⭐⭐

|

[6](./src/day06/index.ts)

|

[7](./src/day07/index.ts)

|

[8](./src/day08/index.ts)

|
|

[9](./src/day09/index.ts)

|

[10](./src/day10/index.ts)

|

[11](./src/day11/index.ts)

|

[12](./src/day12/index.ts)

|

[13](./src/day13/index.ts)

|

[14](./src/day14/index.ts)

|

[15](./src/day15/index.ts)

|
|

[16](./src/day16/index.ts)

|

[17](./src/day17/index.ts)

|

[18](./src/day18/index.ts)

|

[19](./src/day19/index.ts)

|

[20](./src/day20/index.ts)

|

[21](./src/day21/index.ts)

|

[22](./src/day22/index.ts)

|
|

[23](./src/day23/index.ts)

|

[24](./src/day24/index.ts)

|

[25](./src/day25/index.ts)

|||||

## Setup

Set up your session token:

- Get your session token from [Advent of Code](https://adventofcode.com/) (check your browser cookies)
- Create a `.env` file in the root directory
- Add your session token: `SESSION=your_session_token_here`

## Usage

To set up a new day's challenge:

```bash
bun run setup
```

To run solutions:

```bash
bun run run # Run with puzzle input
bun run run -s # Run with test input (smol.txt)
```

To submit solutions:

```bash
bun run submit1 # Submit part 1 solution
bun run submit2 # Submit part 2 solution
```