Skip to main content
. 2022 Mar 19;24(3):426. doi: 10.3390/e24030426
Algorithm 6 Right-hand algorithm.
  • 1:

    Initial start state

  • 2:

    if no obstacles on the right

  • 3:

       Move right

  • 4:

    elseif no obstacles ahead

  • 5:

       Move ahead

  • 6:

    else

  • 7:

       Move left