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

IsNextField Doesn't seem to work after rotation #128

Open
vishvananda opened this issue Apr 5, 2017 · 2 comments
Open

IsNextField Doesn't seem to work after rotation #128

vishvananda opened this issue Apr 5, 2017 · 2 comments
Assignees
Labels

Comments

@vishvananda
Copy link

vishvananda commented Apr 5, 2017

The following setup on http://robotopia.co/#tutorial/Conditions/1 causes the robot to get stuck in the top left corner:

when start
  repeat 50 times
  do
    if
      isNextField Water
    do
      Rotate Right
    else
      Move Forward

But the following seems to work:

when start
  repeat 50 times
  do
    if
      isNextField Water
    do
      Rotate Right
      Move Forward
    else
      Move Forward

It appears that isNextField Water is returning true after rotating right. I assume that it isn't taking the current orientation into account when checking the next field.

@vishvananda
Copy link
Author

Also the following works:

when start
  repeat 50 times
  do
    Move Forward
    if
      isNextField Water
    do
      Rotate Right

does isNextField -> Water only return true after trying to move into the water?

@timgrossmann
Copy link
Member

@vishvananda Thank you for reporting this bug. That really is weird. We'll look into it as soon as possible!

@paulsonnentag paulsonnentag self-assigned this Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants