Geschrieben von: / Posted by: Volker Pittlik at 30 June 2000 21:18:28:
Als Antwort auf: / As an answer to: Auto Winboard Tournaments geschrieben von: / posted by: Dave at 30 June 2000 19:46:17:
I read somewhere that it was possible to automatically run tournaments in Winboard using batch files. Is this true and exactly how would this be done? I really don't have any understanding of batch files.. Thanks for any info.
Dave
Yes it is possible. If you don't have any understanding of *.bat files it will be a little bit difficult. Please have a look at a dos documentation, a magazine or book.
I've used two *.bat files for my ponder_on ponder_off comparision. This tournaments were controlled by two *.bat files. The main idea: *.bat 1 contains only the commands which are allways necesary to start winboard and the two engines. The second *.bat file contains only the variables to control the tournament. To find out which pairings are necessary please look at a tournament handbook.
To give an example this is the first *.bat (wbt) which contains all necessary commands to control winboard and the engines:
d:\winboard\WinBoard /cp /fcp=%1 /fd="%2" /scp=%3 /sd="%4" /tc 1 /inc 2 /mg 20 /-reuse /-reuse2 /debug /sgf d:\winboard\spiele\ponder_on-ponder_off\tempprot.pgn
Please notice: all %n are variables to make it possible to start different engines. There are 20 games per match. The gamescore is stored in tempprot.pgn.
Now the second *.bat (tournament). It controls the tournament:
rem ---------------------------
rem Round 1
rem ---------------------------
call wbt "Bringer16 /winboard" d:\winboard\bringer LambChop_710 d:\winboard\lambchop
copy winboard.debug d:\winboard\spiele\debug1.txt
call wbt Amyf_000420 d:\winboard\amy "SOS_991103 g:\\tb" d:\winboard\sos
copy winboard.debug d:\winboard\spiele\debug2.txt
call wbt "AnMon506 xboard" d:\winboard\anmon "Phalanx22 -l+ -t32768 -r700" d:\winboard\phalanx
copy winboard.debug d:\winboard\spiele\debug3.txt
call wbt Crafty1710 d:\winboard\crafty "Gromit_30 gromit.cui" d:\winboard\gromit3
copy winboard.debug d:\winboard\spiele\debug4.txt
call wbt Comet_B21 d:\winboard\comet "TCB0045 TCBxInit.cui" d:\winboard\tcb
copy winboard.debug d:\winboard\spiele\debug5.txt
call wbt "Arasanx_53 -H 32000 -t\" d:\winboard\arasan EXchess314 d:\winboard\exchess
copy winboard.debug d:\winboard\spiele\debug6.txt
copy d:\winboard\spiele\ponder_on-ponder_off\tempprot.pgn d:\winboard\spiele\ponder_on-ponder_off\ponder_off_r1.pgn
del d:\winboard\spiele\ponder_on-ponder_off\tempprot.pgn
rem ---------------------------
rem Round 2
rem ---------------------------
call wbt LambChop_710 d:\winboard\lambchop "Arasanx_53 -H 32000 -t\" d:\winboard\arasan
copy winboard.debug d:\winboard\spiele\debug7.txt
call wbt "TCB0045 TCBxInit.cui" d:\winboard\tcb EXchess314 d:\winboard\exchess
copy winboard.debug d:\winboard\spiele\debug8.txt
call wbt "Gromit_30 gromit.cui" d:\winboard\gromit3 Comet_B21 d:\winboard\comet
copy winboard.debug d:\winboard\spiele\debug9.txt
call wbt "Phalanx22 -l+ -t32768 -r700" d:\winboard\phalanx Crafty1710 d:\winboard\crafty
copy winboard.debug d:\winboard\spiele\debug10.txt
call wbt "SOS_991103 g:\\tb" d:\winboard\sos "AnMon506 xboard" d:\winboard\anmon
copy winboard.debug d:\winboard\spiele\debug11.txt
call wbt "Bringer16 /winboard" d:\winboard\bringer Amyf_000420 d:\winboard\amy
copy winboard.debug d:\winboard\spiele\debug12.txt
copy d:\winboard\spiele\ponder_on-ponder_off\tempprot.pgn d:\winboard\spiele\ponder_on-ponder_off\ponder_off_r2.pgn
del d:\winboard\spiele\ponder_on-ponder_off\tempprot.pgn
rem ---------------------------
rem Round 3
rem ---------------------------
...
Please notice: to do the correct settings for a tournament please have a look at a tournament manual. There are some which you can find at WWW. Everything after "wbt" is transferred to the 1st *.bat as an argument. All % variables are replaced by this arguments. After that it is the same as you start winboard from the command line.
After the end of each round the tempprot and debug files are copied and deleted after that.
Volker