stage.set_background("subway")
sprite = codesters.Sprite("person10")
sprite.move_down(75)
sprite.flip_up_down()
sprite.move_right(200)
sprite.move_left(150)
sprite.flip_up_down()
stage.wait(2)
sprite.move_up(50)
try:
tval1 = sprite.get_direction()
except:
tval1 = "DNE"
#print(tval1)
t1 = TestObjective()
t1.add_success(tval1 != 0, "Great Job!")
t1.add_failure(tval1 == 0, "Did you use a Turn Left command?")
t1.add_failure(tval1 == "DNE", "Did you delete the sprite?")
t1.add_creative(tval1 != 0 and tval1 != 360 and tval1 != 90 and tval1 != "DNE", "That's a creative choice!")
#t1.add_default("Creative choice!")
t2 = TestObjective()
t2.add_success(tval1 == 360, "Great job!")
t2.add_failure(tval1 == 90, "Did you change the number in the Turn Left command?")
t2.add_failure(tval1 == 0, "Did you add a Turn Left command?")
tester = TestManager()
tester.add_test_list([t1, t2])
tester.run_tests()
tester.display_first_feedback()