Uhh, the robots can merge together... is that intended?
https://www.puzzlescript.net/editor.html?hack=d3e36523514fe4c3077e63d9ad4fdfa5
This is the source code I used for the patrol robot.
https://www.puzzlescript.net/editor.html?hack=d3e36523514fe4c3077e63d9ad4fdfa5
This is the source code I used for the patrol robot.