On Tue, Aug 5, 2008 at 11:26 AM, Aaron Mavrinac <[EMAIL PROTECTED]> wrote:
> AI developers, could you please take a look at the following:
>
> http://thousandparsec.net/wiki/Single_Player#AI_Clients
>
> and let me know if (and how) this is doable with your client? At a
> minimum, I need to be able to start and stop it non-interactively from
> a shell script, specifying the port to connect to, the ruleset to use
> (if necessary), and a username for the client to use (if possible).

GenCon is started from a java class-file, hence it should be no
problem running it from a shell script. It automatically initializes,
then starts to play the game. The stop (then disconnect and close)
command is "q" followed by Return (enter). It takes the following
arguments:

The argument syntax is as follows: (Case sensitive)
----------------------------------
 1) The game to be played: 'RFTS' or 'RISK'.
 2) The server URI: The serverURI must include user info for autologin,
                e.g. "tp://guest:[EMAIL PROTECTED]/tp".
 3) The class-path to the genome file, which will be used. (Really, a
file which specifies behavior).
 4) The difficulty of the AI. Valid input is '1' to '9'.
 5) Verbose debug mode, or normal (quiet) mode. 'd' signifies debug,
while 'n' means normal mode.

 Here's an example of what a run might look like:
 java GenConRunner RISK tp://me:[EMAIL PROTECTED] /genomes/DarkSide_risk_genome 
8 n

> Some way of probing whether it started and connected successfully
> would be nice also.

As mentioned before, it starts playing automatically upon startup. If
there is a problem in the connection it cannot fix on its own, it
terminates.

>
> Thank you.

You welcome! Does that satisfy the requirements for single-player? Any
other questions?

> --
> Aaron Mavrinac
> www.mavrinac.com

Cheers,
-- 
Victor.

Truth is greater than ten goats (Nigerian proverb).
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to