Elo: Add EAT_SIGMOID support
[pachi/derm.git] / genbook.sh
blobc1680fef205f8e737c394cee8311b94a6c986471
1 #!/bin/sh
2 size="$1" # board size
3 opts="$2" # UCT engine options; must NOT specify different policy
4 popts="$3" # UCT policy options
5 [ -n "$size" ] || size=9
6 [ -z "$opts" ] || opts=",$opts"
7 [ -z "$popts" ] || popts=":$popts"
9 if [ "$size" -le 13 ]; then
10 games=400000
11 else
12 games=200000
15 rm uctbook-$size-7.5.pachitree
16 n=0
17 genbook1()
19 echo "[#$n:$1]"
20 n=$((n+1))
21 echo -e 'boardsize '$size'\nclear_board\nkomi 7.5\nuct_genbook b' |
22 ./zzgo -t =$games "policy=ucb1amaf:explore_p=$1$popts$opts"
24 genbook1 0.0
25 genbook1 0.1
26 genbook1 0.2
27 genbook1 2.0
28 genbook1 0.2
29 genbook1 2.0
30 genbook1 0.1
31 genbook1 0.0
32 genbook1 0.0
33 genbook1 0.0