Below are all commands available to students in the Robot simulator. Use from robot import * in your program, or import only the names you need.
A task is considered complete if, after the program finishes, Robot is in the home cell, all cells marked for painting are painted, and the expected number has been printed in every cell that expects number output.
Choosing a task or creating a field
task(task_id)
Starts the selected task.
field(width=8, height=6)
Opens a grid of the given size without tying it to a task. Width from 1 to 25, height from 1 to 15. Robot starts at the top-left; the goal is the bottom-right.