PiE (Programming in Eliza/English) is a tool that helps beginners to learn how to program. By interacting in Natural Language, currently we only can handle English, user can manipulate the "Turtle" (which is represented as an triangle in this design) on the canvas. The turtle will leave the trace wherever it goes and these traces will be a beautiful pattern.
Can you forward 150 steps?
and Click the Talk
. See what happen?Turn left 90 degrees!
and Click the Talk
. You can also type the Enter
on the keyboard instead of the Click.Repeat last 2 commands for 3 times!
.Clear the screen!
Go forward 150 steps!
and Get back 150 Steps
.Turn left 90 degrees
and Turn right 90 degrees
. You can name any degree between 0 to 360. In addition, try Turn left.
and Turn right
. The turtle will by default turn 90 degrees.Clear the screen!
!Can you use a bolder pen?
and then try Go forward 100 steps!
. How it look?
Use a lighter pen
and try again Go forward 100 steps!
. See the difference?
Can you change to color red?
. You can change to any other colors like: grey
purple
green
yellow
black
blue
red
.Forward 100 steps
. Your turtle might hit the wall if you continued three 100 step forward. After it hit the wall, it will appear from the other side.
Get up!
and the turtle will be off the canvas. There will be no trace left when the turtle is off the paper. You can try Can you forward 50 steps?
to double check.Get down!
Forward 100 steps
Forward 150 steps
Turn left 90 degrees
Forward 150 steps
Turn left 90 degrees
Forward 150 steps
Turn left 90 degrees
Forward 150 steps
Turn left 90 degrees
What do you get? A square! But how to use less commands to realize the same thing?Go forward 100 steps.
Turn left
can you repeat last 2 commands for 3 times?
Let's define a function called Square
Repeat the following commands for 4 times
Go forward 100 Steps
Turn left 90 degrees
End the Repeat
End the function
Then Clear the screen
Call the function square
Turn right 60 degrees
Again, Call the function square
Multi-line Mode
by clicking on the arrow beside the Talk
button.Use a red pen
Let the pen be bolder
Repeat the following commands for 4 times
Go forward 100 Steps
Turn left 90 degrees
End the Repeat
Talk
button. What do you get?Multi-line mode
by adding or deleting in the box. Try add Repeat the following commands for 36 times
after Let the pen be bolder
and Turn left 10 degrees
and End the repeat
after the original End the Repeat
. What do you get?Use a red pen
Let the pen be bolder
Repeat the following commands for 36 times
Repeat the following commands for 4 times
Go forward 100 Steps
Turn left 90 degrees
End the first Repeat
Turn left 10 degrees
End the second repeat
Till Now, you are good with basics in programming and You can handle most cases in LOGO to draw any graphs. Don't believe it? Try the Examples!