Skip to content

Releases: pacso/aoc_rb_helpers

v0.0.7

10 Dec 08:55
017024c
Compare
Choose a tag to compare

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

09 Dec 23:24
21bda58
Compare
Choose a tag to compare

What's Changed

  • Add single line helper by @pacso in #6

Full Changelog: v0.0.5...v0.0.6

v0.0.5

08 Dec 11:46
bcea7a5
Compare
Choose a tag to compare

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

05 Dec 23:47
44cb71a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.3...v0.0.4

v0.0.3

02 Dec 13:31
b0f81dc
Compare
Choose a tag to compare

What's Changed

  • Add missing dot matrix letters by @pacso in #3

Full Changelog: v0.0.2...v0.0.3

v0.0.2

02 Dec 07:56
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.1...v0.0.2

v0.0.1

02 Dec 07:56
3b5d0c0
Compare
Choose a tag to compare

Initial release

Added

  • AocInput class for parsing puzzle input

Full Changelog: https://github.com/pacso/aoc_rb_helpers/commits/v0.0.1