Requeriments:
1. php 5.0+
2. pear package HTTP_Client (pear install HTTP_Client-1.2.1 on unix-like systems, you need root privileges if you install this using the easy way)
3. Cron
4. And unless you know how to install HTTP_Client on windows and set a cron there, you will also need an unix-like operating system.
you have the zip file, you don't need to take a look at game.class.php file if you have not modified the following line in index.php:
PHP Code:
$game = new OGamePlayer(true);
PHP Code:
$game = new OGamePlayer(false);
The API is not finished but it can handle lots of essential things.
In index.php there's already a dumb version of a bot that keeps upgrading the lowest level buildings, upgrading military technology and building battleship units.
I did this bot for personal use for a friend's server.
Feel free to use it, modify it, distribute it or even sell it. It's on public domain.
Although I would like you to e-mail me some code contributions if u made any, so I'll update this post.
Happy coding =D