Skip to content

Agent can try to move out of bounds, throwing an ArrayIndexOutOfBoundsException #155

@QuantumMatters

Description

@QuantumMatters

Because dir can be +1 and ax can be the map.length - 1, the agent can try to move outside the bounds of the map array.

To reproduce, run this test with getLevel1 or getLevel2 instead of getLevel3:

return BlockDudeLevelConstructor.getLevel3(domain);

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