Save the Ducks

Ducks saved: 0 / 6

Simple Python Editor

Available Functions
  • move_forward() → move the robot one step ahead
  • turn_left(), turn_right() → rotate the robot
  • is_duck() → True if a duck is in front
  • save_duck() → rescue the duck in front
  • detect_wall() → True if a wall is in front
Console Output