Skip to content

Conversation

@truggeri
Copy link
Owner

Summary

Solving day 14. Rather than stepping through each time block, we calculate the displacement (amount moved) as the velocity times the time, then move the position and account for "wrapping" using modulus. We then assign each robot into a quadrant and do the safety factor calculation.

@truggeri truggeri self-assigned this Dec 27, 2024
@truggeri truggeri merged commit f7d7d54 into main Dec 27, 2024
1 check passed
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.

2 participants