AIInterface:Python: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
New page: == Spring PyAI == The Spring PyAI Interface can be used to write skirmish AIs in Python. === Code === https://sourceforge.net/projects/springpyai/ === Building === See the [http://spri...
 
Abma (talk | contribs)
Line 7: Line 7:
=== Building ===
=== Building ===


See the [http://springpyai.git.sourceforge.net/git/gitweb.cgi?p=springpyai/springpyai;a=blob;f=README README]
First get the clean spring sourcecode:
for a short description how to build it.
 
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 ===
=== Status ===

Revision as of 09:27, 25 May 2010

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.