Make lists of allowed commands/conditions print properly
parent
31981b541e
commit
9e9fb38b60
|
@ -517,7 +517,6 @@ def setup_and_run_task(start_field, start_position, start_heading, text, allowed
|
|||
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"])
|
||||
|
|
Loading…
Reference in New Issue