octacian wrote:I don't like, is that commands are not given to the robot in Lua, but in plain English.
Well, look at an oldtimer like
COBOL("COBOL has an English-like syntax, which was designed to be self-documenting and highly readable":)
If we're trying to teach kids stuff, we should be using Lua.
Lua is just one of many programming-languages.
And there are basic concepts to show/explain first,
like sequence / decision / loop / variables / counting / calculations etc.
The current turtles can just have a sequence of commands
(i.e. "mindless automation"), all the control remains with the user.
But just that can already be quite useful, see my
Tutorial/digger.
From there, the next step would be to introduce checks & conditions,
e.g. check block in front, and decide if to move, turn or to dig, etc.
Then loops, because they need to check for their end-condition.
Also variables, counting & calculations, depending on the problem.
Now throw in some tips on how to organise code longer then a screenful.
Maybe introduce comments and functions along with that.
Etc, etc. until you have covered as much of the language as you want.
To start right off with lua, see
basic_robot.
But there, you might have issues with the sandbox.
(e.g. when digging is limited to 1, user-programs might not work as expected...)
So, starting with a simple, dumb "
DSL"-language might not be a bad idea.