Skip to content

regression .. buggle direction .. (fix #329) #521

@jmullee

Description

@jmullee
The logic is inverted.
For the Maze / Following-the-walls exo, the solution below won't work unless ignoreDirectionDifference() is called

patch: src/plm/universe/bugglequest/AbstractBuggle.java
public abstract class AbstractBuggle
 - private boolean dontIgnoreDirectionDifference = true;
 + private boolean dontIgnoreDirectionDifference = false;

-----8<----
public void run() {
    while(!isOverBaggle()) {
        if(isFacingWall())
            right();
        else {
            forward();
            left();
            }
        }
    pickupBaggle();
	//ignoreDirectionDifference();
    }
---->8----


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions