does nice recursion and stuff too.

nice tree type diagrams.

On Thu, 17 Jul 2003 19:28:13 +1200
Chad <[EMAIL PROTECTED]> wrote:

> LOGO is one language that was specifically designed for children to
> learn to use. Developed in the late 1960's it's very easy to use. At
> my primary school in standard 2(1994ish) they let us play around abit
> with it for a while. It's usually used to control a robotic turtle or
> cursor on screen in simple exersices but can be used for much more
> than that It's kind of based on lisp the book I've got in front of me
> says. It's generally used for drawing shapes etc either on the screen
> or floor (if you have the turtle) You should be able to find more
> about it and some versions on the web try google. I've seen some nice
> fireworks display writen using logo For example Here's a very very
> simple program and a more complex form of it. Each draws a Square
> 
> TO SQUARE1
> FORWARD 100                   //moves turtle or cursor up 100 units
> RIGHT 90                              //turns the pointer/turtle right 90*
> FORWARD 100
> RIGHT 90
> FORWARD 100
> RIGHT 90
> FORWARD 100
> RIGHT 90
> END
> 
> ?SQUARE1
> 
> or More complex
> 
> TO SQUARE2
> REPEAT 4 [FORWARD 100 RIGHT 100]
> END
> 
> ? SQUARE
> 
> Or even more so
> 
> TO SQUARE :SIZE                                               //:Size is a variable
> REPEAT 4 [FORWARD :SIZE RIGHT 90]
> END
> 
> ? SQUARE 100
> 
> Chad
> 
> 


Reply via email to