Hey, I just noticed that maybe you got a bug here.
The condition should be only ">" instead of ">=", because if your rover is sitting over the boundary, it'll return true for outside the boundary and true for inside as well.
Do you agree?
|
return xCoordinate >= this.xCoordinate; |
|
return yCoordinate >= this.yCoordinate; |
Hey, I just noticed that maybe you got a bug here.
The condition should be only ">" instead of ">=", because if your rover is sitting over the boundary, it'll return true for outside the boundary and true for inside as well.
Do you agree?
MarsRover/src/com/thoughtworks/rover/universe/Coordinates.java
Line 35 in 4aec376
MarsRover/src/com/thoughtworks/rover/universe/Coordinates.java
Line 39 in 4aec376