diff options
author | Martin Možina <martin.mozina@fri.uni-lj.si> | 2015-10-14 18:08:44 +0200 |
---|---|---|
committer | Martin Možina <martin.mozina@fri.uni-lj.si> | 2015-10-14 18:08:44 +0200 |
commit | 531bde7a2fe3d643e9b6ffe690405b6cc07c4964 (patch) | |
tree | 9fcdd54ec25cacc32cd5aaacfb731c174278fab8 /robot/problems/introduction/countlines/sl.py | |
parent | 1b936a961e39b2a71b5a773776474446f0c58447 (diff) | |
parent | b1deb24a05a380450ed9dc77c3155a16bd204dfc (diff) |
Merge branch 'master' of 192.168.15.97:codeq-problems
Diffstat (limited to 'robot/problems/introduction/countlines/sl.py')
-rw-r--r-- | robot/problems/introduction/countlines/sl.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/robot/problems/introduction/countlines/sl.py b/robot/problems/introduction/countlines/sl.py new file mode 100644 index 0000000..4e1c3d4 --- /dev/null +++ b/robot/problems/introduction/countlines/sl.py @@ -0,0 +1,26 @@ +# coding=utf-8 + +name = 'Preštej črte' +slug = 'Preštej črte' + +description = '''\ +<p>Robot naj pelje naravnost, pravokotno na črte in naj jih prešteje.</p>''' + +hint = { + 'mW_init':['''<p>Robota v programu predstavimo z mindstorms_widgets(): <code>robot = mindstorms_widgets()</code>.</p>'''], + 'connectMotorLeft':['''<p>Robotu priključi levi motor</p>''', + '''<p><code>robot.connect_motor( 'left' )</code>.</p>'''], + 'connectMotorRight':['''<p>Robotu priključi desni motor</p>''', + '''<p><code>robot.connect_motor( 'right' )</code>.</p>'''], + 'moveSteeringOn':['''<p>Sinhroniziraj motorja in ju zaženi.</p>''', + '''<p>Za sinhronizirano vožnjo je najbolj primerna metoda <code>robot.move_steering( 'on' )</code>.</p>'''], + 'moveSteeringOff':['''<p>Ustavi motorja.</p>''', + '''<p><code>robot.move_steering( 'off' )</code>.</p>'''], + 'connectColorSensor':['''<p>Robotu moramo priključiti barvni senzor.</p>''', + '''<p><code>robot.connect_sensor( 'color' )</code>.</p>'''], + 'colorSensorMeasure':['''<p>Medtem ko se robot pomika naprej, naj uporabi barvni senzor v načinu 'color', s katerim pove, katero barvo trenutno vidi.</p>''', + '''<p><code>robot.color_sensor_measure( 'color' )</code>.</p>'''], + 'while':['''<p>Uporabi zanko, znotraj katere robot odčitava barve in povečuje števec.</p>''', + '''<p>Zanka je lahko časovno omejena, npr. z uporabo metode <code>time.time()</code>.</p>''', + '''<p><code>while time.time()-start < 1.1:</code>.</p>'''], +} |