'if' statement
14 tasks
-
if1Move the Robot to the right if the cell with the Robot is painted.
-
if2Move the Robot to the right if there is a wall under the Robot.
-
if3Paint the cell and move the Robot to the right if there is a wall under the Robot.
-
if4You need to paint in any case (for both environments). Do not place the 'paint()' command inside the 'if' statement.
-
if5The decision to continue moving depends on whether the adjacent cell is painted. First, you need to move to it.
-
if6Paint the cell on the right if there is a wall below it.
-
if7Paint the cell on the right if there is a wall behind it.
-
if8Paint the cell on the left if there is a wall on the left, and the cell on the right if there is a wall on the right.
-
if9Paint every cell of the corridor that does not have a wall on top.
-
if10Paint the cells in the row below the Robot that have no exit from the bottom.
-
if11Paint the cells of the bottom row that are under the painted cells of the top row.
-
if13Paint each cell that has a painted cell to its right, if it is not painted yet. Painting a painted cell is not consider…