getdirection?

22 views
Skip to first unread message

goff

unread,
Mar 6, 2011, 8:31:22 AM3/6/11
to KTurtle; an educational programming environment
I think, "getdirection" would be useful for basic AI programming. At
the moment turtle is able to get coordinates ("getx" and "gety"), but
not a direction. Why?

Niels Slot

unread,
Mar 8, 2011, 11:57:18 AM3/8/11
to kdeedu-...@googlegroups.com, goff
2011/3/6 goff <go...@goff.de>
I think, "getdirection" would be useful for basic AI programming. At
the moment turtle is able to get coordinates ("getx" and "gety"), but
not a direction. Why?

--
You received this message because you are subscribed to the Google Groups "KTurtle; an educational programming environment" group.
To post to this group, send email to kdeedu-...@googlegroups.com.
To unsubscribe from this group, send email to kdeedu-kturtl...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/kdeedu-kturtle?hl=en.

I don't think we every thought of why this function isn't available in KTurtle. Nobody ever requested it, or came up with implementing it.

If there's demand for such a function. I think I could probably add it. It would make sense to have such a function, and implementation should be trivial.

Niels

cies

unread,
Mar 29, 2011, 7:35:10 AM3/29/11
to kdeedu-...@googlegroups.com
niels,

ga je gang hoor, ik zou het wel als "mod" doen en niet als "%", dan
kunnen eventueel de "%" nog voor iets anders gebruiken.

ik ben in de tussentijd vader geworden man!

als attachment een overzichtje van de enerverende week die ik achter de rug heb.


ciao!
c.

first-week.jpg

cies

unread,
Mar 29, 2011, 7:37:29 AM3/29/11
to kdeedu-...@googlegroups.com
oops,

intended the previous email to be sent to niels, but i sent it to the
list instead..

the mail is in dutch and besides explaining my thoughts on the modulo
function i also announce the birth of my daughter "aafje" who was born
on the 19th of march.


just my .2ct and a baby... :)
cies.

Richard Cooke

unread,
Mar 29, 2011, 7:39:59 AM3/29/11
to kdeedu-...@googlegroups.com, cies
Congratulations. I think email mistakes can be justified in the week
after the birth of a child!

Niels Slot

unread,
Apr 23, 2011, 2:48:28 PM4/23/11
to kdeedu-...@googlegroups.com, goff
Hi Goff and everybody else,

I just added the getdirection command to the Git version of KTurtle. It should be in the KTurtle that comes with KDE SC 4.7 in July.

If anyone wants to test it, KTurtle builds like any other KDE application and has no requirement to very recent versions of KDE SC (I'm testing and developing using 4.5). You should be able to get it from Git and build it using the KDE libraries from our distribution.

Also, if someone wants to volunteer for wrting an entry about the getdirection command in the manual, that would be very welcome.

Regards,

Niels

2011/3/8 Niels Slot <niel...@gmail.com>
Reply all
Reply to author
Forward
0 new messages