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

Release 0.0.5 #5

Merged
merged 9 commits into from
Dec 8, 2024
Merged

Release 0.0.5 #5

merged 9 commits into from
Dec 8, 2024

Conversation

pacso
Copy link
Owner

@pacso pacso commented Dec 8, 2024

Added

  • AocInput#process_each_line - Processes each line of the input data using the provided block
  • Grid#includes_coords? - Returns true if the provided coordinates exist within the bounds of the grid
  • Grid#beyond_grid? - Returns true if the provided coordinates exceed the bounds of the grid
  • Grid#locate(value) - Returns the first coordinates within the grid containing the given value
  • Grid#locate_all(value) - Returns an array of coordinates for any location within the grid containing the given value
  • Grid#each_cell - Iterates over each cell in the grid

Changed

  • Grid#cell now returns nil if the provided coordinates to not exist within the grid
  • Grid#set_cell nwo returns nil if the provided coordinates to not exist within the grid

Fixed

  • Grid#dup previously returned a new Grid instance with the same instance of the @grid array within it. Now @grid is a unique copy.

@pacso pacso changed the title Add new methods Release 0.0.5 Dec 8, 2024
@pacso pacso merged commit bcea7a5 into main Dec 8, 2024
6 checks passed
@pacso pacso deleted the process-each-line branch December 8, 2024 11:42
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.

None yet

1 participant