jorendorff / turtle-wars

3 stars 4 forks source link

Movement commands should use up more "time" than program instructions #23

Open jorendorff opened 11 years ago

jorendorff commented 11 years ago

Right now each thread only goes 6 instructions per "tick", which is not fast enough; and movement only costs one "instruction", which is too fast.

bsmedberg commented 11 years ago

I'd like to propose:

Thoughts?

A future advanced option might be to customize your turtle to your program, so you can allocate "turtle speed points" so that your turtle moves, shoots, or looks faster.

jorendorff commented 11 years ago

All of this sounds good, except I don't think the cost of looking should depend on the width. If you use a large width, you naturally get less specific information back (look does not tell you the precise direction to whatever it is you see, and you only see the nearest thing in the specified wedge).

User functions and loops are the same thing in the turtle language, which makes item 1 and item 2 a bit tricky to reconcile.

Another thought I had was that it might be neat to have APIs that just mean "start walking", "stop walking", "start turning left", "stop turning". I'm not totally sure that would be more fun. Turtle speed points would be a blast.