A combination of all three programs ever made (forward-change of direction, opening and closing of hand), into one program.
Place the robot in front of paper cup(10cm forward). And then run the program.
Direction has been switched 180 degrees.
Here is the program was completed. It was too long though. It was repeated twice to move forward, so, we use a " to create a subroutine" and "to run a subroutine ".
[DOWNLOAD] Program was created (for Robolab2.9)
[Movie] running this program (I'm sorry. Does not contain sound)