Nadvent of Code - 2022 Day 17

https://dartpad.dev/?id=7be747054a44186eab0f39911a889b96

As a warmup for this year's Advent of Code, I'm re-reading and posting my solutions to last year's challenges. You can read, run and edit today's solution by following the post link.

Today's challenge had us building a simple Tetris clone with the additional twist that a regular sequence of jets of air blow the falling pieces sideways. Part two asked us to model this for a bazillion cycles, so we needed to keep an eye on the pattern of landed blocks and look for the same pattern to repeat.

2 points · 0 comments · view on lemmy.world

0 Comments

No comments yet.