diff options
author | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-23 11:28:05 +0100 |
---|---|---|
committer | Jure Žabkar <jure.zabkar@fri.uni-lj.si> | 2015-12-23 11:28:05 +0100 |
commit | f80206e6a4e4cec1574a375cb04dbdf07d3e02cd (patch) | |
tree | f5e9c17d8b5d4f212b7460496fdbb7226253f086 /robot/problems/introduction/countlines/common.py | |
parent | 0883cb2a6b0bac23bd7553618f4e8db7c882a757 (diff) |
angleska verzija
Diffstat (limited to 'robot/problems/introduction/countlines/common.py')
-rw-r--r-- | robot/problems/introduction/countlines/common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/robot/problems/introduction/countlines/common.py b/robot/problems/introduction/countlines/common.py index 6d2bf13..bf5343b 100644 --- a/robot/problems/introduction/countlines/common.py +++ b/robot/problems/introduction/countlines/common.py @@ -21,17 +21,17 @@ robot.connect_sensor( 'color' ) robot.move_steering( 'on' ) start = time.time() -stevec = 0 +counter = 0 color = -1 while time.time()-start < 1.2: c = robot.color_sensor_measure( 'color' ) # values: 0-7 see the scale above if c!=color: if c!=6 and c!=0: - stevec += 1 + counter += 1 color = c robot.move_steering( 'off' ) -print( "Stevilo crt:", stevec ) +print( "Number of lines:", counter ) ''' hint_type = { |