Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/marcobiedermann/advent-of-code

🎄 My attempt at solving the Advent of Code puzzles in JavaScript.
https://github.com/marcobiedermann/advent-of-code

2015 2016 2017 2018 2019 2020 2021 2022 2023 advent advent-of-code algorithms christmas javascript problem-solving puzzle solutions typescript

Last synced: 10 days ago
JSON representation

🎄 My attempt at solving the Advent of Code puzzles in JavaScript.

Awesome Lists containing this project

README

        

# Advent of Code

[![codecov](https://img.shields.io/codecov/c/gh/marcobiedermann/advent-of-code)](https://codecov.io/gh/marcobiedermann/advent-of-code)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fmarcobiedermann%2Fadvent-of-code.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fmarcobiedermann%2Fadvent-of-code?ref=badge_shield)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/marcobiedermann/advent-of-code/ci.yml)

My attempt of solving [Advent of Code](https://adventofcode.com/) puzzles in JavaScript.

## Table of Contents

- [Events](#events)
- [2023](#2023)
- [2022](#2022)
- [2021](#2021)
- [2020](#2020)
- [2019](#2019)
- [2018](#2018)
- [2017](#2017)
- [2016](#2016)
- [2015](#2015)
- [Setup](#setup)
- [Usage](#usage)
- [License](#license)

## Events

#### 2023

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2023/day/25) | |
| [Day 24](2023/day/24) | |
| [Day 23](2023/day/23) | |
| [Day 22](2023/day/22) | |
| [Day 21](2023/day/21) | |
| [Day 20](2023/day/20) | |
| [Day 19](2023/day/19) | |
| [Day 18](2023/day/18) | |
| [Day 17](2023/day/17) | |
| [Day 16](2023/day/16) | |
| [Day 15](2023/day/15) | |
| [Day 14](2023/day/14) | |
| [Day 13](2023/day/13) | |
| [Day 12](2023/day/12) | |
| [Day 11](2023/day/11) | |
| [Day 10](2023/day/10) | |
| [Day 9](2023/day/9) | |
| [Day 8](2023/day/8) | |
| [Day 7](2023/day/7) | |
| [Day 6](2023/day/6) | |
| [Day 5](2023/day/5) | |
| [Day 4](2023/day/4) | |
| [Day 3](2023/day/3) | |
| [Day 2](2023/day/2) | |
| [Day 1](2023/day/1) | |

### 2022

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2022/day/25) | |
| [Day 24](2022/day/24) | |
| [Day 23](2022/day/23) | |
| [Day 22](2022/day/22) | |
| [Day 21](2022/day/21) | |
| [Day 20](2022/day/20) | |
| [Day 19](2022/day/19) | |
| [Day 18](2022/day/18) | |
| [Day 17](2022/day/17) | |
| [Day 16](2022/day/16) | |
| [Day 15](2022/day/15) | |
| [Day 14](2022/day/14) | |
| [Day 13](2022/day/13) | |
| [Day 12](2022/day/12) | |
| [Day 11](2022/day/11) | |
| [Day 10](2022/day/10) | |
| [Day 9](2022/day/9) | |
| [Day 8](2022/day/8) | |
| [Day 7](2022/day/7) | |
| [Day 6](2022/day/6) | |
| [Day 5](2022/day/5) | |
| [Day 4](2022/day/4) | |
| [Day 3](2022/day/3) | |
| [Day 2](2022/day/2) | |
| [Day 1](2022/day/1) | |

### 2021

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2021/day/25) | |
| [Day 24](2021/day/24) | |
| [Day 23](2021/day/23) | |
| [Day 22](2021/day/22) | |
| [Day 21](2021/day/21) | |
| [Day 20](2021/day/20) | |
| [Day 19](2021/day/19) | |
| [Day 18](2021/day/18) | |
| [Day 17](2021/day/17) | |
| [Day 16](2021/day/16) | |
| [Day 15](2021/day/15) | |
| [Day 14](2021/day/14) | |
| [Day 13](2021/day/13) | |
| [Day 12](2021/day/12) | |
| [Day 11](2021/day/11) | |
| [Day 10](2021/day/10) | |
| [Day 9](2021/day/9) | |
| [Day 8](2021/day/8) | |
| [Day 7](2021/day/7) | |
| [Day 6](2021/day/6) | |
| [Day 5](2021/day/5) | |
| [Day 4](2021/day/4) | |
| [Day 3](2021/day/3) | |
| [Day 2](2021/day/2) | |
| [Day 1](2021/day/1) | |

### 2020

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2020/day/25) | |
| [Day 24](2020/day/24) | |
| [Day 23](2020/day/23) | |
| [Day 22](2020/day/22) | |
| [Day 21](2020/day/21) | |
| [Day 20](2020/day/20) | |
| [Day 19](2020/day/19) | |
| [Day 18](2020/day/18) | |
| [Day 17](2020/day/17) | |
| [Day 16](2020/day/16) | |
| [Day 15](2020/day/15) | |
| [Day 14](2020/day/14) | |
| [Day 13](2020/day/13) | |
| [Day 12](2020/day/12) | |
| [Day 11](2020/day/11) | |
| [Day 10](2020/day/10) | |
| [Day 9](2020/day/9) | |
| [Day 8](2020/day/8) | |
| [Day 7](2020/day/7) | |
| [Day 6](2020/day/6) | |
| [Day 5](2020/day/5) | |
| [Day 4](2020/day/4) | |
| [Day 3](2020/day/3) | |
| [Day 2](2020/day/2) | |
| [Day 1](2020/day/1) | |

### 2019

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2019/day/25) | |
| [Day 24](2019/day/24) | |
| [Day 23](2019/day/23) | |
| [Day 22](2019/day/22) | |
| [Day 21](2019/day/21) | |
| [Day 20](2019/day/20) | |
| [Day 19](2019/day/19) | |
| [Day 18](2019/day/18) | |
| [Day 17](2019/day/17) | |
| [Day 16](2019/day/16) | |
| [Day 15](2019/day/15) | |
| [Day 14](2019/day/14) | |
| [Day 13](2019/day/13) | |
| [Day 12](2019/day/12) | |
| [Day 11](2019/day/11) | |
| [Day 10](2019/day/10) | |
| [Day 9](2019/day/9) | |
| [Day 8](2019/day/8) | |
| [Day 7](2019/day/7) | |
| [Day 6](2019/day/6) | |
| [Day 5](2019/day/5) | |
| [Day 4](2019/day/4) | |
| [Day 3](2019/day/3) | |
| [Day 2](2019/day/2) | |
| [Day 1](2019/day/1) | |

### 2018

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2018/day/25) | |
| [Day 24](2018/day/24) | |
| [Day 23](2018/day/23) | |
| [Day 22](2018/day/22) | |
| [Day 21](2018/day/21) | |
| [Day 20](2018/day/20) | |
| [Day 19](2018/day/19) | |
| [Day 18](2018/day/18) | |
| [Day 17](2018/day/17) | |
| [Day 16](2018/day/16) | |
| [Day 15](2018/day/15) | |
| [Day 14](2018/day/14) | |
| [Day 13](2018/day/13) | |
| [Day 12](2018/day/12) | |
| [Day 11](2018/day/11) | |
| [Day 10](2018/day/10) | |
| [Day 9](2018/day/9) | |
| [Day 8](2018/day/8) | |
| [Day 7](2018/day/7) | |
| [Day 6](2018/day/6) | |
| [Day 5](2018/day/5) | |
| [Day 4](2018/day/4) | |
| [Day 3](2018/day/3) | |
| [Day 2](2018/day/2) | |
| [Day 1](2018/day/1) | |

### 2017

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2017/day/25) | |
| [Day 24](2017/day/24) | |
| [Day 23](2017/day/23) | |
| [Day 22](2017/day/22) | |
| [Day 21](2017/day/21) | |
| [Day 20](2017/day/20) | |
| [Day 19](2017/day/19) | |
| [Day 18](2017/day/18) | |
| [Day 17](2017/day/17) | |
| [Day 16](2017/day/16) | |
| [Day 15](2017/day/15) | |
| [Day 14](2017/day/14) | |
| [Day 13](2017/day/13) | |
| [Day 12](2017/day/12) | |
| [Day 11](2017/day/11) | |
| [Day 10](2017/day/10) | |
| [Day 9](2017/day/9) | |
| [Day 8](2017/day/8) | |
| [Day 7](2017/day/7) | |
| [Day 6](2017/day/6) | |
| [Day 5](2017/day/5) | |
| [Day 4](2017/day/4) | |
| [Day 3](2017/day/3) | |
| [Day 2](2017/day/2) | |
| [Day 1](2017/day/1) | |

### 2016

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2016/day/25) | |
| [Day 24](2016/day/24) | |
| [Day 23](2016/day/23) | |
| [Day 22](2016/day/22) | |
| [Day 21](2016/day/21) | |
| [Day 20](2016/day/20) | |
| [Day 19](2016/day/19) | |
| [Day 18](2016/day/18) | |
| [Day 17](2016/day/17) | |
| [Day 16](2016/day/16) | |
| [Day 15](2016/day/15) | |
| [Day 14](2016/day/14) | |
| [Day 13](2016/day/13) | |
| [Day 12](2016/day/12) | |
| [Day 11](2016/day/11) | |
| [Day 10](2016/day/10) | |
| [Day 9](2016/day/9) | |
| [Day 8](2016/day/8) | |
| [Day 7](2016/day/7) | |
| [Day 6](2016/day/6) | |
| [Day 5](2016/day/5) | |
| [Day 4](2016/day/4) | |
| [Day 3](2016/day/3) | |
| [Day 2](2016/day/2) | |
| [Day 1](2016/day/1) | |

### 2015

| Day | Stars |
| --------------------- | ----- |
| [Day 25](2015/day/25) | |
| [Day 24](2015/day/24) | |
| [Day 23](2015/day/23) | |
| [Day 22](2015/day/22) | |
| [Day 21](2015/day/21) | |
| [Day 20](2015/day/20) | |
| [Day 19](2015/day/19) | |
| [Day 18](2015/day/18) | |
| [Day 17](2015/day/17) | |
| [Day 16](2015/day/16) | |
| [Day 15](2015/day/15) | |
| [Day 14](2015/day/14) | |
| [Day 13](2015/day/13) | |
| [Day 12](2015/day/12) | |
| [Day 11](2015/day/11) | |
| [Day 10](2015/day/10) | |
| [Day 9](2015/day/9) | |
| [Day 8](2015/day/8) | |
| [Day 7](2015/day/7) | |
| [Day 6](2015/day/6) | |
| [Day 5](2015/day/5) | |
| [Day 4](2015/day/4) | |
| [Day 3](2015/day/3) | |
| [Day 2](2015/day/2) | |
| [Day 1](2015/day/1) | |

## Setup

Install dependencies.

```sh
npm install
```

## Usage

### Format

Format code using [Prettier](https://prettier.io/).

```sh
npm run format
```

### Linting

Lint code using [ESLint](https://eslint.org/).

```sh
npm run lint
```

### Testing

Run tests using [Vitest](https://vitest.dev/) testing framework.

```sh
npm test
```

## License

[MIT](LICENSE) © [Marco Biedermann](https://github.com/marcobiedermann)