How would you code an AI engine to allow communication in any programming language?
Posted
by
Tokyo Dan
on Game Development
See other posts from Game Development
or by Tokyo Dan
Published on 2011-03-15T10:06:12Z
Indexed on
2011/03/15
16:20 UTC
Read the original article
Hit count: 312
I developed a two-player iPhone board game. Computer players (AI) can either be local (in the game code) or remote running on a server. In the 2nd case, both client and server code are coded in Lua. On the server the actual AI code is separate from the TCP socket code and coroutine code (which spawns a separate instance of AI for each connecting client).
I want to be able to further isolate the AI code so that that part can be a module coded by anyone in their language of choice. How can I do this? What tecniques/technology would enable communication between the Lua TCP socket/coroutine code and the AI module?
© Game Development or respective owner