This Skirmish AI is written in pure C, to prove that the C AI interface works. It consists of only the very minimum that is needed for a spring Skirmish AI to load.
NullAI is an empty implementation, meaning it will load, but do absolutely nothing. It can be used to test the AI interface or for exploring a map if one wants the end game screen not to appear. It can also be used as a template for new C or C++ Skirmish AI projects.
It comes with spring source. Reffer to Obtaining the Source.
How to compile
The easy way
Use SCons or CMake (refer to Building spring).
The hard way
- include directories:
- source files:
- create dynamic loadable shared library (module)
- should compile with all C compilers (tested with MinGW, GCC, Intel)
How to install
- copy build/libNullAI.so, build/libNullAI.dylib or build/NullAI.dll to ./
- copy data/* to ./