by linley » 05 Jan 2015, 23:22
The AI code runs in a virtual machine emulating an imaginary 16 bit processor, with bytecode representing basic machine code instructions. The game includes a compiler that turns C into this special bytecode (it includes an assembler that builds the bytecode as well, but it's not very user friendly), and has a basic development environment designed for coding in C (you can see the IDE open in one of the screenshots). It could work in other compiled languages as well, but there'd need to be a special compiler to produce the game's bytecode.
Each process (ship) runs its AI routines a couple of times a second and has a certain number of instructions it can execute each time, which is enough to create complex AI but not enough to slow down the game. Even my old laptop with a Celeron processor has no problems running it.
It could be used for learning programming, and it also has a kind of turn-based multiplayer so it can be played competitively as well.