ReadMe info file for RoboTour
-----------------------------
(There is also a HTML version in doc/)

1. Installation

First, unpack the zip file you downloaded to a directory of your choice.

Additionally, you can download the Graphical Interface Roboview. This provides
a nice look at your tournament. (In Linux you should use XRoboTour)

Please read licence.txt for the licence of this program!

Have fun!

2. Usage

2.1 General

RoboTour is a fast OS independent RoboCom interpreter especially for
simulating tournaments. Its advantages are:

   o It is about 5 times as fast as the Tournament Mode of RoboCom.
   o It is available for Linux, DOS and Windows and may be compiled by any
     standard C++ Compiler on any platform.
   o Supports Top Mode to generate your own charts like RobServ.

2.2 Quick Start

You can simply start RoboTour with some robot files (.ROB or .RBI files) as
command line arguments.

Example: robotour ruhe.rbi dj.rbi test.rob

The result is a tournament of all robots specified against all. At the end of
the tournament, a table will be shown containing the results of all robots.

When using the Linux or DOS Version of RoboTour, wildcards are permitted.

Example: robotour -s thebestbot.rob bots/*.rob top20/*.rbi

As the -s parameter is used in this example, only the first specified robot,
thebestbot.rob, will be simulated against all other robots.

You can get more information about possible options by calling robotour
without parameters or by reading the following sections.

2.3 Parameter overview

Mostly, RoboTour will be used to simulate tournaments. There are several
standard settings that can be changed:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-n n   ~You can change how often each fight will be repeated. Normally, it ~
~       ~is ten times like in the Internet Competition. Example: -n 5       ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-o     ~Set the game settings (timings, ...) file to RCOFile. Normally, the~
~RCOFile~enclosed file robocom.rco is used, which includes the settings of  ~
~       ~the Internet Competition. Example: -o hard.rco                     ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-v n   ~Set the verbose level of RoboTour. Normally, this is set to 5,     ~
~       ~lower values cause less output. Example: -v 2                      ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-p n   ~Print the field every n cycles. This feature is normally           ~
~       ~deactivated, as the resulting text mode graphics are not very nice ~
~       ~and will lead to continuous scrolling. It is recommended to direct ~
~       ~the output to a file. Example: -p 100                              ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-r     ~Disable randomizing. This causes RoboTour to produce the same      ~
~       ~results every time.                                                ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-c     ~Switch to "charts" mode: Simulate every robot against every other  ~
~       ~robot. This is the standard mode.                                  ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-s     ~Switch to "single" mode: Simulate only the first robot against all ~
~       ~others. Useful for testing new robots.                             ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-t n   ~Switch to "top n" mode: Create a charts list where it is possible  ~
~       ~to add robots. If there are more than n robots in the charts, the  ~
~       ~worst will be dropped. Example: -t 20                              ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-a     ~Switch to "all" mode: Simulate one fight with all possible         ~
~       ~startpositions. This is useful to get the "real" result of one     ~
~       ~fight and to find out the weak positions of your robot.            ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~-i     ~Switch to "all-in-one" mode: Load all specified bots into one      ~
~       ~simulation.                                                        ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Examples:

robotour bots/*.rbi
robotour -n 5 -o easy.rco -v2 others/*.rob
robotour -s mybestbot.rob top20/*.rbi
robotour -r -p 100 -v 0 ruhe.rbi dj.rbi > ruhe_dj.log
robotour -a forget.rob it.rob
robotour -t 20 infector.rob


2.4 Modes

RoboTour supports various tournament modes that are useful for different
purposes.

   o Single and Charts mode are similar to the modes in the tournament mode of
     RoboCom.
   o The all-in-one mode is similar to the simulation mode in RoboCom. The big
     advantage is that you can use bigger fields (by editing the RCO file)
     because RoboTour is much faster.
   o The all mode simulates one fight with all possible startpositions and
     creates a result file, xxx.zzz. By executing allhtml, a html file will be
     created which can be viewed in your favourite Internet browser. Be sure
     that the enclosed GIF files (0_0.gif ... 3_3.gif & Mitte.gif) are in the
     same directory as the html file. Caution: The result file will be
     overwritten when using all mode the next time.
   o The top mode works like RobServ. To create your own competition, perform
     the following steps:
        o Copy all robots to be added to your competition into one directory.
        o Enter this directory and execute robotour -t 20 *.rob *.rbi
        o For all new bots to be inserted,
             o copy them into the directory
             o execute robotour -t 20 newbot.rob
        o Execute makehtml *.rob *.rbi to create HTML files from the results.
        o If you want to throw a robot out of the competition, execute kickbot
          sillybot.rob and insert a new one.

     These steps can be done automaticly by some scripts. For every
     competition you want to simulate perform the following steps:
        o Copy the subdirectory top/ in the robotour directory to another
          subdirectory like mytop20/
        o Copy all bots you want to simulate into the newbots direcory of your
          competition (Example: mytop20/newbots)
        o Go to your competition directory and execute update with the number
          of places as first parameter and the number of fights as second
          argument. You can also use a script like top20_10. This equals the
          execution of update 20 10.
        o In the Linux Version are some additional scripts called backup and
          kill.
          backup is used to save the result of the day and kill terminates the
          execution of robotour and all the scripts in the right order. Be
          careful with kill!!! It might terminate some other processes named
          similar like update etc...
          These scripts are useful to set up a server that terminates the
          execution of robotour on shutdown and continues on the next
          startup. To do so it is useful to copy an existing startup script
          from /sbin/init.d/, modify it and place links in the runlevel
          2(/sbin/init.d/rc2.d/). You can find a demo script for SuSE called
          top/scripts/robserv.

3. Contact us

Please send us feedback about this program!

Contact the authors:

   o Martin Trautmann
   o Florian Fischer

Get more information about new releases and other programs at these Web pages:

   o New releases of RoboTour
   o C / C++programs (games, painting programs)
   o Java programs (for example a chat program)

Thank you for using this program!
