# coding=utf-8 import server mod = server.problems.load_language('robot', 'en') name = 'Forward 3s' slug = 'Forward 3s' description = '''\

Write a program that would make the robot drive straight forward for 3 seconds and stop

''' hint = { 'mW_init':mod.hint['init'], 'connectMotorLeft':mod.hint['connectMotorLeft'], 'connectMotorRight':mod.hint['connectMotorRight'], 'moveSteering':mod.hint['moveSteering'], 'onForSeconds':mod.hint['onForSeconds'], 'direction':mod.hint['direction']+['''

robot.move_steering( 'on_for_seconds', direction=0, ... ).

'''], 'seconds':mod.hint['seconds']+['''

robot.move_steering( 'on_for_seconds', direction=0, seconds=3 ).

'''], } plan = ['''\

The program should:

  1. create a mindstorms_widgets() object, which represents the robot in your code.
  2. connect the driving motors.
  3. synchronize the motors and run them so that the robot would move forward for 3 seconds.
''' ]