diff --git a/lambdaV.py b/lambdaV.py index de0c38e..4bd71d5 100644 --- a/lambdaV.py +++ b/lambdaV.py @@ -514,10 +514,9 @@ def setup_and_run_task(start_field, start_position, start_heading, text, allowed field = start_field draw_field() print("\n"+text) - print("\nAllowed commands: "+" ,".join(allowed_commands)) - print("\nAvailable conditions: "+" ,".join(allowed_conditions)) + print("\nAllowed commands: "+", ".join(allowed_commands)) + print("\nAvailable conditions: "+", ".join(allowed_conditions)) print(evaluate_parser_result(parse_code(input("\nCode: "), allowed_commands, allowed_conditions))) - #TODO: return information about success or failure def debug_setup(): setup_and_run_task(empty_field, [1,1], cursor_east, "Debug mode", ["step", "left", "right", "take", "repeat", "while", "if"], ["facing north", "facing south", "facing east", "facing west", "in front of wall", "goal reached", "on apple"])