Skip to content

Conversation

romellem
Copy link
Owner

The required game-of-life-esque puzzle!

Nothing super complicated, but one huge easy thing to miss in your implementation:

  • When looping your proposals for the elf, if it finds one, stop looping! My big bug was I always looped through the 4 options, and picked the last correct one.

Otherwise, InfiniteGrid is fairly handy here, except when it comes to part 2. There, its inability to loop through specific cells is obvious, as part 2 takes a long time. I need to loop over my entire grid every time, when really all I should be doing is looping over ELF cells. Oh well, still takes less than 10 seconds so fast enough for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant