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.
New Ai Ideas
Moderator: Moderators
Re: New Ai Ideas
cs : ee : realist
-
- Kami-Sama Desu~
- Posts: 195
- Joined: 04 Apr 2008, 09:24
- Noob?: Yes
- Location: 31th Dimension
- Contact:
Re: New Ai Ideas
yes we need something equivalent to the old documentation.kLabMouse wrote:Almost none of those doc's have nothing to do with "AI 2008", they describe old design.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.
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.
Re: New Ai Ideas
You can run createdoc.pl from src/doc/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.
Code: Select all
#!/usr/bin/env perl
# Documentation extractor. Extracts documentation from comments from .pm files and put them in HTML files.
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.
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.
-
- Super Moderators
- Posts: 801
- Joined: 06 May 2008, 12:47
- Noob?: No
Re: New Ai Ideas
python's doctest for perl: Test::Snippet
(also take a look at "see also")
(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!
One ST_kRO to bring them all and in the darkness bind them...
Mount Doom awaits us, fellowship of OpenKore!
-
- Super Moderators
- Posts: 801
- Joined: 06 May 2008, 12:47
- Noob?: No
Re: New Ai Ideas
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.
"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!
One ST_kRO to bring them all and in the darkness bind them...
Mount Doom awaits us, fellowship of OpenKore!