Taking a crack at the 2020 Advent of Code challenge of two puzzles per day in December. Solutions written in TypeScript with Jest for testing. Run with yarn test
.
d8888b. a8888a d8888b. a8888a
`88 d8' ..8b `88 d8' ..8b
.aaadP' 88 .P 88 .aaadP' 88 .P 88
88' 88 d' 88 88' 88 d' 88
88. Y8'' .8P 88. Y8'' .8P
Y88888P Y8888P Y88888P Y8888P
:.....::.....::.....::.....:.....:
::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::
8 o d'b
8 8 8
.oPYo. .oPYo8 o o .oPYo. odYo. o8P .oPYo. o8P
.oooo8 8 8 Y. .P 8oooo8 8' `8 8 8 8 8
8 8 8 8 `b..d' 8. 8 8 8 8 8 8
`YooP8 `YooP' `YP' `Yooo' 8 8 8 `YooP' 8
:.....::.....:::...:::.....:..::..::..::::.....::..::
:::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::
8
8
.oPYo. .oPYo. .oPYo8 .oPYo.
8 ' 8 8 8 8 8oooo8
8 . 8 8 8 8 8.
`YooP' `YooP' `YooP' `Yooo'
:.....::.....::.....::.....:
::::::::::::::::::::::::::::
::::::::::::::::::::::::::::