Check if the goal has been reached after interpreting code
parent
c0c99890d3
commit
7ed9e8cc4f
|
@ -477,8 +477,10 @@ def evaluate_parser_result(parsed_code):
|
|||
# runtime error
|
||||
# TODO: pass back information about where the error occurred
|
||||
return outcome
|
||||
#TODO: check if goal reached
|
||||
if condition_goal_reached(False):
|
||||
return "Success!"
|
||||
else:
|
||||
return "Goal not reached!"
|
||||
|
||||
|
||||
def debug_setup():
|
||||
|
|
Loading…
Reference in New Issue