Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

IsNextField Doesn't seem to work after rotation #128

Description

@vishvananda

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions