From 7ed9e8cc4fec03f296d3711b80064d2f943ad902 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sat, 26 Nov 2022 15:05:52 +0100 Subject: [PATCH] Check if the goal has been reached after interpreting code --- lambdaV.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lambdaV.py b/lambdaV.py index 2b2f572..0d7c107 100644 --- a/lambdaV.py +++ b/lambdaV.py @@ -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 - return "Success!" + if condition_goal_reached(False): + return "Success!" + else: + return "Goal not reached!" def debug_setup():