blob: 5023d7f9a602bbc0be93d17c3b52f1e34eaa4b0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# coding=utf-8
from server.hints import Hint
id = 202
group = 'introduction'
number = 1
visible = True
solution = '''\
import time
from ev3dev import *
from mindstorms_widgets import mindstorms_widgets
robot = mindstorms_widgets()
robot.connect_motor('left')
robot.connect_motor('right')
robot.move_steering('on', power=50)
time.sleep(3)
robot.move_steering('off', brake_at_end=True)
'''
hint_type = {
'ev3dev': Hint('ev3dev'),
'mindWidgets': Hint('mindWidgets'),
}
def test(program):
return False, []
def hint(program):
return []
|