Skip to content

Boundary detection bug #4

@giovanichaves

Description

@giovanichaves

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions