
I'd like to develop a "good" AI for the game. Therefore i managed to check out & compile the code with a very basic AI, which just builds bus-routes inside towns (you can see some screenshots here).
However, the last time i coded s.th. with C++ is about five years ago (3D games with DirectX), nowadays i develop enterprise applications with Java. And I really miss the concept of classes with inheritance, interfaces, java.util.Collection, STRINGS


So my idea was the following: Let the game talk to an "AI Server" developed in Java via Sockets (loopback interface). The game would ask the server what to do, and the server either says "give me information on tile xy" or "build road parts NW and NE on tile xy". Or - if the AI server does some pathfinding stuff - it could say "nothing to do atm, i am busy".
What is your opinion of this? Could this work?