summaryrefslogtreecommitdiff
path: root/robot/problems/introduction/spotturn90/sl.py
diff options
context:
space:
mode:
Diffstat (limited to 'robot/problems/introduction/spotturn90/sl.py')
-rw-r--r--robot/problems/introduction/spotturn90/sl.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/robot/problems/introduction/spotturn90/sl.py b/robot/problems/introduction/spotturn90/sl.py
new file mode 100644
index 0000000..fe477aa
--- /dev/null
+++ b/robot/problems/introduction/spotturn90/sl.py
@@ -0,0 +1,21 @@
+# coding=utf-8
+
+name = 'Obrat na mestu 90'
+slug = 'Obrat na mestu 90'
+
+description = '''\
+<p>Robot naj se na mestu obrne za 90 stopinj v desno.</p>'''
+
+hint = {
+ 'mW_init':['''<p>Robota v programu predstavimo z mindstorms_widgets(): <code>robot = mindstorms_widgets()</code>.</p>'''],
+ 'connectMotorLeft':['''<p>Robotu moramo priključiti levi motor: <code>robot.connect_motor( 'left' )</code>.</p>'''],
+ 'connectMotorRight':['''<p>Robotu moramo priključiti desni motor: <code>robot.connect_motor( 'right' )</code>.</p>'''],
+ 'moveTank':['''<p>Robot naj se obrne na mestu.</p>''',
+ '''<p>Najprimernejša metoda za to je <code>move_tank</code></p>'''],
+ 'onForSeconds':['''<p>Prvi argument metode <code>robot.move_tank</code> naj pove, da bo delovanje motorjev časovno omejeno.</p>''',
+ '''<p><code>robot.move_tank('on_for_seconds', ... )</code>.</p>'''],
+ 'lrPower':['''<p>Za obrat na mestu se morata kolesi vrteti z enako močjo in v nasprotni smeri.</p>''',
+ '''<p><code>robot.move_tank( 'on_for_seconds', lr_power=[hitrost, -hitrost], ... )</code>.</p>'''],
+ 'seconds':['''<p>Napiši časovno omejitev v sekundah.</p>''',
+ '''<p><code>robot.move_tank( 'on_for_seconds', ..., seconds=... )</code>.</p>'''],
+}