Hm... then the code should run in a Thread that is stop()ed after N milliseconds... as it's extremely easy to write a perfect AI without a time constraint.
Further, the goal should be relatively easy (yet hard to master), like some bot with certain extremely basic sensors, like feeling depth in a certain direction or heat / radiation. The environment should only feed those sensors with information, and the 'bots' should have limited output to control themselves.
You might be given an array or sensors and controllers and place them on a simple geometry shape programmatically at initialisation time.
Maybe...? Oh... and who is going to program the environment
