AI interface in Python? - Page 2

AI interface in Python?

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: AI interface in Python?

Post by hoijui »

mmm sounds like an idea!
i may would have done it that way if i had known about it. but now, it makes little sense.
engine internally, this is pretty 100% bug free, and the interface code will have to be automatically created anyway, which should make it pretty hard to get wrong. or better said, either all the events/commands are wrong, or none of them, and so it would be extremly easy to spot if done wrong.
Also, so far there is no union used anywhere in the AI interface (a light arguemtn though).

but reading your post reminded me, that there is an other reltively important change in the refactor: instead of teamId, which is now used as the main identifier for an AI, it will be skirmishAIId afterwards. though, this woudl be pretty much a search&replace change only for you.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: AI interface in Python?

Post by Agon »

What about IronPython?
+ Heavy support from MS
+ Partly faster than CPython
+ Python 2.6 is in rc3 stage
+ You would gain Mono related languages, too. (C#, Java (oh again), Boo, VB,....)
+ I already implemented a Mono interface once and I would help you
- Monos API is not well documented

Well, I think you guys know more about IronPython and CPython than me.
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: AI interface in Python?

Post by hughperkins »

Agon wrote:What about IronPython?
+ Heavy support from MS
+ Partly faster than CPython
+ Python 2.6 is in rc3 stage
+ You would gain Mono related languages, too. (C#, Java (oh again), Boo, VB,....)
+ I already implemented a Mono interface once and I would help you
- Monos API is not well documented

Well, I think you guys know more about IronPython and CPython than me.
It's not cross-platform.

Anyone who would like their AIs to be generally available in the Spring release package will only be interested in cross-platform solutions I feel.

At least: that is why I prefer using Java to using C# for AIs.

Python would be:
- cross-platform
- it's I feel a purely open-source language, little patent burden, no obvious direct potential issues with Novell, Microsoft, etc ...
- it's an awesome language! I feel
- it is I feel a 'highly available' language, in the sense that it basically comes by default in many linux desktops, and it's pretty easy I feel to install in Windows.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: AI interface in Python?

Post by Agon »

IronPython runs on any platforms where Mono runs which are many.
And about this patent issues, really thats old school and was never a problem.

Well never mind I only want to point out that I feel you can gain more by creating a Mono AI interface than a CPython one.
Same applies to the Java interface by the way. What I heard about JnaPointers and lots of other problems.... well with Mono you would have gained the .Net world and Java world.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AI interface in Python?

Post by abma »

Sorry for posting to such an old post...

Just as a note, there is an Python Interface in developement:

http://springrts.com/wiki/AI:Development:Lang:Python
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: AI interface in Python?

Post by hughperkins »

Wow, this is awesome news abma! Nice work!
echoone
AI Developer
Posts: 150
Joined: 16 Nov 2009, 18:26

Re: AI interface in Python?

Post by echoone »

Great news!
Post Reply

Return to “AI”