UCT: set default max_maintime_ratio=3
[pachi.git] / tools / gentbook.sh
blob1df4366967a000cbb1158276c1846aa28e753392
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 ucttbook-$size-7.5.pachitree
16 n=0
17 gentbook1()
19 echo "[#$n:$1]"
20 n=$((n+1))
21 echo -e 'boardsize '$size'\nclear_board\nkomi 7.5\nuct_gentbook b' |
22 ./pachi -t =$games "policy=ucb1amaf:explore_p=$1$popts$opts"
24 gentbook1 0.0
25 gentbook1 0.1
26 gentbook1 0.2
27 gentbook1 2.0
28 gentbook1 0.2
29 gentbook1 2.0
30 gentbook1 0.1
31 gentbook1 0.0
32 gentbook1 0.0
33 gentbook1 0.0