The match script in this directory allows running a local match
or a single game between two Arimaa bots.

The usage for the match script is:
  match [gold bot] [silver bot] [random seed or range of seeds] [move file]

For example type:
  match r0 r0
You should see bot r0 playing a game against itself.
If you run the above command again, you should see
another game with different moves being made.

If the above command is not working, you might need to
recompile the bots provided with this distribution.
Go into the bot_r0 directory and type: make

The random seed is optional, and can be used to repeat 
the same game again. For example:
  match r0 r0 5
will use 5 as the seed for the random number generator.
The random seed should be a number greater than zero.

A range of seed values can be provided in which case a
game will be run with each of the seed value and only
the result of the game will be shown. For example:
  match r0 r0 1-5
will run 5 games with the random seed values of 1 to 5.
The result should be:
  b g 25b     1
  b g 43b     2
  b g 28b     3
  w g 46b     4
  b g 20b     5
The last number on the line is the seed value that was used.

A 'move file' containing moves that have already been made can
also be provided in place of the random seed or after it.
The bots will be used to continue the game. If not provided
the game starts from move 1w. The format of a valid move is:
1w Ha1 Mb1 Ec1 Rd1 Re1 Rf1 Hg1 Dh1 Ra2 Db2 Cc2 Rd2 Re2 Cf2 Rg2 Rh2
1b ca8 rb8 dc8 dd8 ee8 rf8 hg8 rh8 ra7 rb7 cc7 rd7 he7 rf7 mg7 rh7
2w Rh2n Ra2n Dh1n Db2n
2b rd7s rd6w cc7e rc6x cd7s
3w Rd2n Rd3w Db3s Hg1e


The bot name given to the match script should be defined in 
the 'bots' files. This file contains the directory and command 
associated with the defined bots. View the 'bots' file for more info.


A directory called 'running' will be created in the current
directory and also in the bot directory. It is used to store
temporary files that are used while the match script is running.
The files in these directories can be deleted when the match
script is not running.


