hedy icon indicating copy to clipboard operation
hedy copied to clipboard

🖊️Turtle will not move when forward or turn is used without variable

Open AnneliesVlaar opened this issue 1 year ago • 1 comments

Language idea incl level In level 1 (until 18) the turtle moves and turns even when there is no variable put after the commands. For example:

turn
forward
turn
forward
turn
forward
turn
forward

will create a square although I would expect it to not work.

Additional context I think there are two possible behaviours that suite this example code. It raises an error (expected something after forward/turn) or the turtle will turn 0 or move forward with 0.

AnneliesVlaar avatar Jun 30 '24 18:06 AnneliesVlaar

Ah good catch @AnneliesVlaar!

Felienne avatar Jul 01 '24 15:07 Felienne