if3 – 'if' statement

Paint the cell and move the Robot to the right if there is a wall under the Robot.

Environments

Environment 1
Environment 2

Constraints

  • Required keywords in solution: if
  • Forbidden keywords in solution: while

Example in Python

from robot import *

task("if3")