5. The Baltic Way: Give Me Your Hand, My Friend

A few people got lost and don't know where to go. When programming, such issues are easily solved by using conditions ("if..., then..."). For example, "if you turn left, then you will reach your destination". Create the conditions to eliminate gaps between people.
This text is displayed if your browser does not support HTML5 Canvas.
    Hint:
  • 1
Javascript code: