Skip to content

Releases: rafaelgonzalez/loco_bot

2.0.0

08 Jul 23:16
Compare
Choose a tag to compare

View change log

Major

  • Robot attributes are now read only

    • Robot#table
    • Robot#x
    • Robot#y
    • Robot#direction
  • Robot#robots now returns a copy of the internal @robots instance variable.

    This is to enforce the new read-only behavior of Robot attributes.

  • Renamed .coordinates method of Direction submodules to .vector

    • Direction::East.coordinates renamed to .vector
    • Direction::North.coordinates renamed to .vector
    • Direction::South.coordinates renamed to .vector
    • Direction::West.coordinates renamed to .vector

Minor

  • Added Robot#next_position_valid?

    Determines if the next position of the Robot is valid according to its Table. Returns a boolean.

Patch

  • Added more specs
  • Fixed some documentation and specs typos

Initial release

08 Jul 09:39
Compare
Choose a tag to compare
v1.0.0

Version 1.0.0