Skip to content

Participation in Advent of Code 2020 event, find here my solutions for each days written in TypeScript. ๐Ÿ”ฎโญ

Notifications You must be signed in to change notification settings

norbitrial/advent-of-code-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CircleCI License: MIT

Advent of Code 2020 ๐ŸŽ„๐Ÿ‘จโ€๐Ÿ’ป

This repository is made for participating in Advent of Code 2020 event which is still ongoing. ๐Ÿšง

Testing is really important even with small units, based on this rule most of the functions are covered with jest test cases. Mainly focusing on TDD (Test-driven development) instead of quick and dirty solutions in this repository.

In the meantime check out my website: https://szabonorbert.me ๐ŸŒ

LinkedIn ๐Ÿ“ | My first game - Feed the Turtle ๐Ÿข | StackOverflow Profile ๐Ÿ”ฎ

Guide to use ๐Ÿ“™

After cloning the repository run the following commands:

  • npm install to install required dependencies
  • npm run build to build all the TypeScript files
  • npm start to build and run the application
  • npm test to run jest test cases and generating code coverage report

The build command will place all the complied JavaScript files in the dist folder.

Screenshot from the helper app:

App-Screenshot

Solutions for each days ๐Ÿ”ฎ

See below my solutions separated by day:

Day Title Example Input Solution Files
01 Report Repair input.txt Part One Part Two โœ…
02 Password Philosophy input.txt Part One Part Two โœ…
03 Toboggan Trajectory input.txt Part One & Two โœ…
04 Passport Processing input.txt Part One & Two โœ…
05 Binary Boarding input.txt Part One & Two โœ…
06 Custom Customs input.txt Part One Part Two โœ…
07 Handy Haversacks input.txt Part One Part Two โœ…
08 Handheld Halting input.txt Part One Part Two โœ…
09 Encoding Error input.txt Part One Part Two โœ…
10 n/a input.txt Part One Part Two โ“

Testing ๐Ÿงช

Running test cases and generating code coverage report with npm test. The coverage report can be found after runing tests in /coverage folder. See an example from the terminal:

Jest-Screenshot

Have a nice day! ๐Ÿ‘‹

About

Participation in Advent of Code 2020 event, find here my solutions for each days written in TypeScript. ๐Ÿ”ฎโญ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published