Skip to content

Give Grid methods for iterating over the Coords neighbors of a given Coords in the grid #92

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

Closed
jwodder opened this issue Apr 13, 2025 · 0 comments · Fixed by #96
Closed
Labels
c:grid enhancement New feature or request therefor pkg:adventutil

Comments

@jwodder
Copy link
Owner

jwodder commented Apr 13, 2025

Define separate methods for cardinal and diagonal-inclusive neighbors.

This can be used in the solutions to the following problems:

  • 2016-24a
  • 2016-24b
  • 2017-14b
  • 2021-09b
  • 2021-11a
  • 2021-11b
  • 2024-10a
  • 2024-10b
  • 2024-12a
  • ???
@jwodder jwodder added enhancement New feature or request therefor pkg:adventutil c:grid labels Apr 13, 2025
jwodder added a commit that referenced this issue Apr 13, 2025
Grid: `neighbor_coords()` and `adjacent_coords()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:grid enhancement New feature or request therefor pkg:adventutil
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant