Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pngwn/advent-of-code-2019
https://github.com/pngwn/advent-of-code-2019
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pngwn/advent-of-code-2019
- Owner: pngwn
- Created: 2019-12-01T14:50:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-01T15:15:52.000Z (about 5 years ago)
- Last Synced: 2024-10-14T13:05:51.622Z (2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Advent of Code - 2019
Maybe I'll do it this year. I'm not very bright but I like puzzles.
The code is in `advent/` (e.g: `advent/day-01.js`) the inputs are in `advent/inputs/` (e.g. `advent/inputs/day-01.js`).
Code and tests are in the same file.
## Run the code
You can run the tests for a given day via the command line, tests are how we run the code because i'm lazy:
`yarn`:
```bash
yarn advent 1
# or yarn advent day-01
# or yarn advent day1
````npm`:
```bash
npm run advent 1
# or npm run advent day-01
# or npm run advent day1
```It is really only the number that matters.
You can run the tests for all days by running the command with no arguments.
`yarn`:
```bash
yarn advent
````npm`:
```bash
npm run advent
```