compound6 – Compound conditions

Move the Robot downwards to the cell that has a wall to the left or to the right, paint that cell, and return the Robot to the starting cell.

Environments

Environment 1
Environment 2
Environment 3

Constraints

  • Required keywords in solution: while

Example in Python

from robot import *

task("compound6")