Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lloydrichards/edu_advent-of-code-2023

Solutions to the 2023 Advent of Code. Using fp-ts and Bun.
https://github.com/lloydrichards/edu_advent-of-code-2023

advent-of-code fp-ts typescript

Last synced: 1 day ago
JSON representation

Solutions to the 2023 Advent of Code. Using fp-ts and Bun.

Awesome Lists containing this project

README

        

# Advent of Code 2023

This repository contains my solutions to the
[Advent of Code](https://adventofcode.com/) puzzles in 2023.

I'm using this as an opportunity to improve my functional programming skills in
[fp-ts](https://gcanti.github.io/fp-ts/). I've setup a
[bun](https://bun.sh/) environment for running the code and tests in Typescript.

The solutions are in the `src` directory. Each day has its own directory, and
there is a solution for each part of the puzzle. The `input` directory contains
the puzzle input for each day.

## Running the code

To run the code, you'll need to install the dependencies:

```bash
bun install
```

Then you can run the code for a given day:

```bash
bun run src/day_1/part_1.ts
```

To run the tests:

```bash
bun test
```