Here is sample program illustrating what could come next.
class amazing(RefurbishedRobot): def diag(self): self.set_trace_style(1, 'white') self.turn_left() self.move() self.turn_right() self.move() self.set_trace_style(1, 'sea green') Magician = amazing() Magician.move() Magician.move() Magician.diag() Magician.diag() Magician.move() Magician.move() Magician.turn_off()
The following example could be extended so that almost all the grey dotted lines in the Robot's world are erased.
class eraser(RefurbishedRobot): def __init__(self): RefurbishedRobot.__init__(self) self.set_trace_style(5, 'white') Sneaky = eraser() while Sneaky.front_is_clear(): Sneaky.move() Sneaky.turn_off()