Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmullee opened this issue Nov 22, 2018 · 0 comments
Open

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

jmullee opened this issue Nov 22, 2018 · 0 comments

Comments

@jmullee
Copy link

jmullee commented Nov 22, 2018

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----


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant