if5 – 'if' statement
The decision to continue moving depends on whether the adjacent cell is painted. First, you need to move to it.
Environments
Constraints
- Required keywords in solution: if
- Forbidden keywords in solution: while
Example in Python
from robot import *
task("if5")