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.3k stars 285 forks source link

[BUG] Better error message for 'backward' #1937

Open MarleenGilsing opened 2 years ago

MarleenGilsing commented 2 years ago

At the moment Hedy gives the 'you forgot to use a command' error when using backward in the turtle. While I think that would be a very logical command for a student to try. So maybe create an error message that tells you backward isn't a command but you can use forward and negative numbers.

image

huang-v commented 2 years ago

Would a custom error message for the first level be desired?

MarleenGilsing commented 2 years ago

@huang-v Yes it is, thanks! I would like the error message to make clear that the turtle can go backwards but they have to use forward -100.

Felienne commented 2 years ago

Yeah we have this nice string distance error for other keywords, maybe we want to use that here too?