AIInterface:Python

From Spring
Revision as of 09:27, 25 May 2010 by Abma (talk | contribs) (→Building)
Jump to navigationJump to search

Spring PyAI

The Spring PyAI Interface can be used to write skirmish AIs in Python.

Code

https://sourceforge.net/projects/springpyai/

Building

First get the clean spring sourcecode:

git clone git://github.com/spring/spring.git spring

then get the springpyai code into the right folder

git clone git://springpyai.git.sourceforge.net/gitroot/springpyai/springpyai spring/AI/Interfaces/Python

and link the nullpythonai to the right folder to get it compiled

ln -s ../Interfaces/Python/test/NullPythonAI/ spring/AI/Skirmish/NullPythonAI 

That's it, when python is detected, the Interface will be compiled automaticly

Status

Most functions and Datatypes should work. However, there is no typechecking at this point and the interface may crash if you use a wrong type. All classes and functions are generated and because of this, there is no further documentation available.

Check the NullPythonAI for something to start with.