docs.kde.org
The KTurtle Handbook
Next

The KTurtle Handbook

Cies Breijs

Anne-Marie Mahfouf

Mauricio Piacentini

Revision 0.8 beta (2008-01-22)
Legal Notice

KTurtle is an educational programming environment that uses TurtleScript, a programming language inspired by Logo. The main quality of TurtleScript is that the programming commands can be translated to the language of the 'programmer' so he/she can program in his/her native language and KTurtle programming language reproduces this feature.


Table of Contents

1. Introduction
What is TurtleScript?
Features of KTurtle
2. Using KTurtle
The Code Editor
The Inspector
The Canvas
The Menubar
The File Menu
The Edit Menu
The View Menu
The Tools Menu
The Settings Menu
The Help Menu
The Toolbar
The Statusbar
3. Getting Started
First steps with TurtleScript: meet the Turtle!
The Turtle Moves
More examples
4. TurtleScript Programming Reference
Different Instruction Types
Commands
Numbers
Strings
Names
Assignments
Math Symbols
Questions
Question Glue-Words
Comments
Commands
Moving the turtle
Where is the turtle?
The turtle has a pen
Commands to control the canvas
Commands to clean up
The turtle is a sprite
Can the turtle write?
A command that rolls dice for you
Input and feedback though dialogs
Containers
Variables: number containers
Containers that contain text (strings)
Can the Turtle do math?
Asking questions, getting answers...
Questions
Question Glue
Controlling execution
Have the turtle wait
Execute "if"
If not, in other words: "else"
The "while" loop
The "repeat" loop
The "for" loop, a counting loop
Stop the turtle
Create your own commands with “learn
5. Glossary
6. Translator's Guide to KTurtle
7. Credits and License
A. Installation
How to obtain KTurtle
Compilation and Installation
Command Index

List of Tables

4.1. Types of questions
4.2. Question glue-words
5.1. Different types of code and their highlight color
5.2. Often used RGB combinations
Next
 


docs.kde.org