From 9e9fb38b6033b4eff0cc28cabc6864277bb664ee Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Fri, 23 Dec 2022 12:17:21 +0100 Subject: [PATCH] Make lists of allowed commands/conditions print properly --- lambdaV.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"])