Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solving day 21 #25

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Solving day 21 #25

merged 1 commit into from
Jan 3, 2025

Conversation

truggeri
Copy link
Owner

@truggeri truggeri commented Jan 3, 2025

Summary

Created functions that given a start and end position, either on a num pad or a directional pad, give the best sequence to get there. The "best" part was determined by picking a direction (NW for example), then running unit tests to determine actually the opposite was better (WN). We then string together the given number of directional pads and run the given inputs.

@truggeri truggeri self-assigned this Jan 3, 2025
@truggeri truggeri merged commit f629a18 into main Jan 3, 2025
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.

1 participant