Problem 1041 · Medium

Robot Bounded In Circle

Decide whether a robot repeating a movement program stays within a bounded region. Its path is traced over repeated passes to see whether it returns to the origin or turns to a new heading.

Open the interactive visualisation