t = codesters.Teacher()
updates = t.find_function('update')
try:
tval3 = updates[0][1]
tval4 = t.get_indent_at_line(updates[0][0])
except:
tval3 = "DNE"
tval4 = "DNE"
t2 = TestObjective()
t2.add_success('score_board' in tval3 and '(score)' in tval3 and tval4 == 4, "Great job!")
t2.add_failure(tval3 == "DNE", "Did you add an Update Display command?")
t2.add_failure('score_board' not in tval3, "Did you change the name in your update display command to score_board?")
t2.add_failure('(score)' not in tval3, "Did you change the variable in your Update Display command to score?")
t2.add_failure(tval4 > 4, "Make sure your Update Display command is nested only 1 tab in your Collision Event.")
t2.add_failure(tval4 < 4, "Make sure your Update Display command is nested in your Collision Event.")
tester = TestManager()
tester.add_test_list([t2])
tester.run_tests()
tester.display_first_feedback()
Are you already running a Codesters project in another tab or window?
Micro:bit can only connect to one web page at a time.
Try stopping other Codesters projects or closing
other tabs or windows that may be using your Micro:bit.
If that doesn't fix the problem try disconnecting your Micro:bit,
reloading this page, and reconnecting your Micro:bit.