Pachi Doetsu 4.00
[pachi/nmclean.git] / genbook.sh
blob7f66eb473cbe29da565e5ad40d39fd73ce40ec65
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=1000000
11 else
12 games=500000
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 "games=$games,policy=ucb1amaf:explore_p=$1$popts$opts"
24 genbook1 0.1
25 genbook1 0.2
26 genbook1 0.6
27 genbook1 1.0
28 genbook1 2.0
29 genbook1 0.6
30 genbook1 2.0
31 genbook1 0.2
32 genbook1 0.1
33 genbook1 0.1