Check if the goal has been reached after interpreting code

master
BodgeMaster 2022-11-26 15:05:52 +01:00
parent c0c99890d3
commit 7ed9e8cc4f
1 changed files with 4 additions and 2 deletions

View File

@ -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():