New Ai Ideas

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: New Ai Ideas

#41 Post by sli »

Tad offtopic, but is there anything like Python's doctest for Perl? What it does is scan source docstrings looking for test that looks like interactive interpreter sessions in the comments and converts them into unit tests (read: fucking awesome). This would let one test out the entire API quickly and easily.

Obviously a Perl one would be different since it doesn't use an interactive interpreter, but the idea is there.
cs : ee : realist

isieo
Kami-Sama Desu~
Kami-Sama Desu~
Posts: 195
Joined: 04 Apr 2008, 09:24
Noob?: Yes
Location: 31th Dimension
Contact:

Re: New Ai Ideas

#42 Post by isieo »

kLabMouse wrote:
Technology wrote:srcdoc has some good examples, wich should be updated for AI 2008.
Something like Initialization & main loop would be usefull imo. (old diagram)
Also, How the AI subsystem is designed for people that will work on AI modules.

other example:
http://www.openkore.com/wiki/index.php/ ... _subsystem
http://www.openkore.com/wiki/index.php/ ... k_overview
http://www.openkore.com/wiki/index.php/New_AI_design

Oh yea, don't forget to update the src/doc/modules.txt when you add another file, just updated it up till now.
Almost none of those doc's have nothing to do with "AI 2008", they describe old design.
The new one, is that "Star Ship" model with some additions to it.

I'm thinking, about adjusting auto documentation, so there will be better description about API.
yes we need something equivalent to the old documentation.

kali
OpenKore Monk
OpenKore Monk
Posts: 457
Joined: 04 Apr 2008, 10:10

Re: New Ai Ideas

#43 Post by kali »

sli wrote:Tad offtopic, but is there anything like Python's doctest for Perl? What it does is scan source docstrings looking for test that looks like interactive interpreter sessions in the comments and converts them into unit tests (read: fucking awesome). This would let one test out the entire API quickly and easily.

Obviously a Perl one would be different since it doesn't use an interactive interpreter, but the idea is there.
You can run createdoc.pl from src/doc/

Code: Select all

#!/usr/bin/env perl
# Documentation extractor. Extracts documentation from comments from .pm files and put them in HTML files.
But all it does is extract comments, so it's not exactly the one you're looking for (just the doc, not the test part).
Got your topic trashed by a mod?

Trashing topics is one click, and moving a topic to its proper forum is a lot harder. You expend the least effort in deciding where to post, mods expend the least effort by trashing.

Have a nice day.

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: New Ai Ideas

#44 Post by Technology »

python's doctest for perl: Test::Snippet
(also take a look at "see also")
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: New Ai Ideas

#45 Post by Technology »

See following sections in this pdf: http://www.valvesoftware.com/publicatio ... _booth.pdf

"Moving through the Environment" -> looks like kore's current drunken walking.
"Path Optimization" -> "Following path directly looks robotic"
"Reactive Path Following" -> Looks like what we want kore to do. (+ the followed path is close to the one with path optimization, but not as much bot-like)


The "Intention subsystem" looks interesting as well.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

Locked