Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vtombesi/aoc-ts

A project for advent-of-code made in Typescript (with love 🥰)
https://github.com/vtombesi/aoc-ts

advent-of-code challenges typescript

Last synced: about 20 hours ago
JSON representation

A project for advent-of-code made in Typescript (with love 🥰)

Awesome Lists containing this project

README

        

# ts-aoc

## Getting Started

This is organized with the following structure:

```file-tree
ts-aoc-starter
├── puzzles
│ ├── day-1
│ │ ├── day-1-a.data.txt
│ │ ├── day-1-a.sample-data.txt
│ │ ├── day-1-a.ts
│ │ ├── day-1-b.data.txt
│ │ ├── day-1-b.sample-data.txt
│ │ └── day-1-b.ts
│ ├── day-2
│ ├── day-3
```

## Running the Puzzles

Copy and paste the sample data given in the problem into the `day-X-a.sample-data.txt` file.

Copy and paste your larger unique actual data set into the `day-X-a.data.txt` file.

Add your solution to the `day-X-a.ts` file.

To run your solution against your sample data set, run the following command:

```terminal
nx day-1-a --data=sample
```

or

```terminal
npm run day-1-a:sample
```

To run your solution against your actual data set, run the following command:

```terminal
nx day-1-a
```

or

```terminal
npm run day-1-a
```