AIInterface:Python: Difference between revisions
From Spring
Jump to navigationJump to search
| Line 6: | Line 6: | ||
=== Building === | === Building === | ||
From the [http://springpyai.git.sourceforge.net/git/gitweb.cgi?p=springpyai/springpyai;a=blob_plain;f=README README]: | |||
First get the clean spring sourcecode: | First get the clean spring sourcecode: | ||
Revision as of 09:29, 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
From the README:
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.