summaryrefslogtreecommitdiff
path: root/robot/problems/introduction/forward/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'robot/problems/introduction/forward/common.py')
-rw-r--r--robot/problems/introduction/forward/common.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/robot/problems/introduction/forward/common.py b/robot/problems/introduction/forward/common.py
index f6330fd..b3fa8a9 100644
--- a/robot/problems/introduction/forward/common.py
+++ b/robot/problems/introduction/forward/common.py
@@ -9,7 +9,6 @@ number = 1
visible = True
solution = '''\
-import time
from ev3dev import *
from mindstorms_widgets import mindstorms_widgets
@@ -48,13 +47,13 @@ def hint( code):
if not has_token_sequence(tokens, ['move_steering']):
return [{'id': 'moveSteering'}]
- if not has_token_sequence(tokens, ['on_for_seconds']):
+ if not 'on_for_seconds' in code:
return [{'id': 'onForSeconds'}]
- if not has_token_sequence(tokens, ['direction']):
+ if not 'direction' in code:
return [{'id': 'direction'}]
- if not has_token_sequence(tokens, ['seconds']):
+ if not 'seconds' in code:
return [{'id': 'seconds'}]
return None