Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Igranje turnirjev (XBoard): Razlika med redakcijama


m (Bash skripta za igranje turnirjev s pomočjo XBoard programa premaknjeno na Igranje turnirjev (XBoard))
Vrstica 24: Vrstica 24:
 
do
 
do
 
xboard $MODE -xexit -size Big -coords -thinking -highlight -mg $GAMES -sgf "$PGNFILE"\
 
xboard $MODE -xexit -size Big -coords -thinking -highlight -mg $GAMES -sgf "$PGNFILE"\
-fd "${DIR[$i]}" -fcp "${ENGINE[$i]}" -sd "${DIR[$j]}" -scp "${ENGINE[$j]}"  
+
-fd "${DIR[$i]}" -fcp "${ENGINE[$i]}" -sd "${DIR[$j]}" -scp "${ENGINE[$j]}" -pgnExtendedInfo true
 
done
 
done
 
done
 
done

Redakcija: 09:02, 5. avgust 2009

#!/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]}" -pgnExtendedInfo true
	done
done

echo Tournament finished