Releases: pacso/aoc_rb_helpers
Releases · pacso/aoc_rb_helpers
v0.0.7
What's Changed
Added
- Grid#each_cell! - Iterates over each cell in the grid, calling the provided block with each cell and updating the cell with the returned value
- Grid#neighbours - Accessor method to easily fetch the coordinates of cardinal and/or ordinal locations from the given coordinates
Full Changelog: v0.0.6...v0.0.7
v0.0.6
v0.0.5
What's Changed
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.
Full Changelog: v0.0.4...v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Initial release
Added
- AocInput class for parsing puzzle input
Full Changelog: https://github.com/pacso/aoc_rb_helpers/commits/v0.0.1