diff options
Diffstat (limited to 'robot/problems/introduction/countlines')
-rw-r--r-- | robot/problems/introduction/countlines/common.py | 1 | ||||
-rw-r--r-- | robot/problems/introduction/countlines/sl.py | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/robot/problems/introduction/countlines/common.py b/robot/problems/introduction/countlines/common.py index 6a50988..925fc06 100644 --- a/robot/problems/introduction/countlines/common.py +++ b/robot/problems/introduction/countlines/common.py @@ -31,6 +31,7 @@ while time.time()-start < 2.1: stevec += 1 color = c robot.move_steering( 'off' ) + print( "Stevilo crt:", stevec ) ''' diff --git a/robot/problems/introduction/countlines/sl.py b/robot/problems/introduction/countlines/sl.py index 4e1c3d4..1f8ea18 100644 --- a/robot/problems/introduction/countlines/sl.py +++ b/robot/problems/introduction/countlines/sl.py @@ -24,3 +24,16 @@ hint = { '''<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>'''], } + +plan = ['''\ +<p>Program izvedemo v naslednjih korakih:</p> +<ol> + <li>Naredimo objekt mindstorms_widgets(), s katerim predstavimo robota.</li> + <li>Nanj povežemo oba pogonska motorja.</li> + <li>Povežemo barvni senzor.</li> + <li>Vklopimo oba motorja tako, da robot vozi naravnost.</li> + <li>V zanki naj robot bere barve in jih šteje.</li> + <li>Zanka naj se konča po vnaprej določenem času, npr. 3 sekunde.</li> + <li>Ustavimo oba motorja.</li> +</ol>''' +] |