Igranje turnirjev (XBoard): Razlika med redakcijama
(New page: <table border="1"><tr><td><pre> #!/bin/bash GAMES=100 PGNFILE="games_`date '+%d_%m_%G'`.pgn" #MODE="-depth 6" #MODE="-st 0:5" MODE="-tc 5" ENGINE[0]="polyglot" DIR[0]="/home/BBChess12" ...) |
|||
Vrstica 35: | Vrstica 35: | ||
[[Category:Šahovski program BBChess]] | [[Category:Šahovski program BBChess]] | ||
− | [[en:Bash engine-tournament script with | + | [[en:Bash engine-tournament script with XBoard]] |
Redakcija: 15:03, 17. december 2007
#!/bin/bash GAMES=100 PGNFILE="games_`date '+%d_%m_%G'`.pgn" #MODE="-depth 6" #MODE="-st 0:5" MODE="-tc 5" ENGINE[0]="polyglot" DIR[0]="/home/BBChess12" ENGINE[1]="polyglot" DIR[1]="/home/BBChess13" ENGINE[2]="crafty" DIR[2]="/home/" SIZE=${#ENGINE[*]}; rm -f "$PGNFILE" for ((i=0; i<$SIZE; i++)) do for ((j=$i+1; j<$SIZE; j++)) do xboard $MODE -xexit -size Big -coords -thinking -highlight -mg $GAMES -sgf "$PGNFILE"\ -fd "${DIR[$i]}" -fcp "${ENGINE[$i]}" -sd "${DIR[$j]}" -scp "${ENGINE[$j]}" done done echo Tournament finished |