Releases: rafaelgonzalez/loco_bot
Releases · rafaelgonzalez/loco_bot
2.0.0
Major
-
Robot
attributes are now read onlyRobot#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 ofDirection
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 itsTable
. Returns a boolean.
Patch
- Added more specs
- Fixed some documentation and specs typos
Initial release
v1.0.0 Version 1.0.0