I would like to create a framework that would allow user to compete with his AI code against other player AI online.
The problem is that I don't know how should server simulate the fight online. If users send their AI codes to server I don't know how would I eliminate security risks without completely interpreting the AI code. Also I thought about the option that AI code would be running on client.
What's the best way? Is it by using some specific script language for AI and interpreting it by server or something else?