@coderbyheart on Twitter

A static archive of Markus Tacker's tweets. Follow me on Mastodon: @[email protected].

Home / Archive / 2019 / 2019-12 / 1203461466193563648

I've completed Part One of "Amplification Circuit" - Day 7 - Advent of Code 2019
with #TypeScript https://adventofcode.com/2019/day/7 #AdventOfCode

Code:
https://github.com/coderbyheart/adventofcode/tree/a3ce4d1fbfd2562eb045f9daeab8f92f608575b1/day7

I failed on part 2, though.

Sat, 07 Dec 2019 23:49:07 UTC♥ 5

2 replies

Replying to @coderbyheart

I've simplified the control structure, but the programs just stop after a few
cycles:
https://github.com/coderbyheart/adventofcode/blob/5118b2526d2da9da490b665072afbe0aa400bb97/day7/calculateThrusterWithFeedbackLoop.ts#L23

Sun, 08 Dec 2019 10:42:20 UTC
Replying to @coderbyheart

Found the bug:
https://github.com/coderbyheart/adventofcode/blob/5118b2526d2da9da490b665072afbe0aa400bb97/day7/calculateThrusterWithFeedbackLoop.ts#L13

Part 2 is now also complete:
https://github.com/coderbyheart/adventofcode/tree/ed99c5a8bb23756725286cfcabbfc202246172ea/day7

Sun, 08 Dec 2019 13:57:34 UTC