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 ๐ฎ
After cloning the repository run the following commands:
npm install
to install required dependenciesnpm run build
to build all the TypeScript filesnpm start
to build and run the applicationnpm 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:
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 | โ |
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:
Have a nice day! ๐