-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoscript.sh
executable file
·64 lines (62 loc) · 1.69 KB
/
goscript.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
#number of games
game=10
#configuration
BasicBasic=false
BasicUct=false
UctUct=false
UctBasic=false
#level associated
blacklevel=(1 5 10 25 50 82 100)
blacklist=(1 3 10 13 20 23)
whitelevel=(1 5 10 25 50 82 100)
whitelist=(1 3 10 13 20 23)
if $UctUct ; then
#uct vs uct
for blevel in ${blacklevel[*]}
do
for btype in ${blacklist[*]}
do
for wlevel in ${whitelevel[*]}
do
for wtype in ${whitelist[*]}
do
./go -c1 -type $btype -level $blevel -dump results/tree+black-$blevel-$btype+white-$wlevel-$wtype -c2 -type $wtype -level $wlevel -dump results/tree+white-$wlevel-$wtype+black-$blevel-$btype -g $game -output results/result+black-$blevel-$btype+white-$wlevel-$wtype.dat >> $outputfile
done
done
done
done
elif $UctBasic; then
#uct vs basic
for blevel in ${blacklevel[*]}
do
for btype in ${blacklist[*]}
do
for wtype in ${whitelist[*]}
do
./go -c1 -type $btype -level $blevel -dump results/tree+black-$blevel-$btype+white-$wtype -c2 -type $wtype -g $game -output results/result+black-$blevel-$btype+white-$wtype.dat >> $outputfile
done
done
done
elif $BasicUct; then
#basic vs uct
for wlevel in ${whitelevel[*]}
do
for btype in ${blacklist[*]}
do
for wtype in ${whitelist[*]}
do
./go -c1 -type $btype -c2 -type $wtype -level $wlevel -dump results/tree+white-$wlevel-$wtype+black-$btype -g $game -output results/result+black-$btype+white-$wlevel-$wtype.dat >> $outputfile
done
done
done
elif $BasicBasic ; then
#basic vs basic
for btype in ${blacklist[*]}
do
for wtype in ${whitelist[*]}
do
./go -c1 -type $btype -c2 -type $wtype -g $game -output results/result+black-$btype+white-$wtype.dat >> $outputfile
done
done
fi