hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.27k stars 282 forks source link

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

Open AnneliesVlaar opened 2 days ago

AnneliesVlaar commented 2 days ago

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.

Felienne commented 1 day ago

Ah good catch @AnneliesVlaar!