[kde-edu]: Recursion in KTurtle? (+umlauts)

RalfGesellensetter rgx at gmx.de
Sat Oct 6 14:42:11 CEST 2007


Am Freitag 05 Oktober 2007 18:31 schrieb Matthias Messmer:
> learn snow x [


Dear Matthias,

thanks again. Again, "else" had to be removed. Here is a German 
translation, working with the original German code mode. I need to give 
a warning: Kturtle cannot save Umlauts correctly in UTF8 - I need to 
edit the .logo file using kwrite in UTF8 mode in order to make the file 
usable.

BTW: My version is 0.6/KDE 3.5.7

# preparing...
zurücksetzen
papiergröße  300,301
richtung 90

# recursive definition
lerne koch k [
  wenn k == 0 [
   vw 10
   zurück 
  ]
  
   koch k-1
   nl 60
   koch k-1
   nr 120
   koch k-1
   nl 60
   koch k-1
  zurück 
]

# LOS!
gehe 0,50
koch 1

gehe 0,150
koch 2

gehe 0,250
koch 3


More information about the kde-edu mailing list