Skip to content

caiangums/aoc-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎄Advent of Code - 2020

Advent of Code 2020 Solutions with JS

Usage

Dependencies:

  • NodeJS
  • Yarn (or npm)

Install all the dependencies

$ yarn

Create your daily solutions based on the day 00 directory and add them to the main index.js:

import solve00 from './00'
import solve01 from './01' // <- here

const solveAll = async () => {
  await solve00()
  await solve01() // <- and here
}

export default solveAll

The puzzle inputs are not going to be added, as it changes based on user.

Running

Run and see solutions

$ yarn solve

See tests (wth Jest)

$ yarn test

Lint your code

$ yarn lint

Tests

under construction

The suggested lib for testing is Jest.