[go: up one dir, main page]

Menu

[r49]: / playmatch.sh  Maximize  Restore  History

Download this file

21 lines (16 with data), 343 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#OPPONENT='gnuchess'
#OPPONENT='polyglot fruit.ini'
#OPPONENT='polyglot toga2.ini'
OPPONENT='crafty'
if [ -f ./enginematch.pgn ]; then
rm enginematch.pgn
fi
if [ -f ./result.txt ]; then
rm result.txt
fi
for i in `seq 1 100`;
do
./match.sh pgn/all.pgn $i "$OPPONENT" >> result.txt 2>&1
./resultcount result.txt
done