From f2ae70b106457a558d793e8311db35b7ec65f39f Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 3 Oct 2009 18:59:53 +0200 Subject: [PATCH] genbook.sh: Fix policy-wise invocation --- genbook.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/genbook.sh b/genbook.sh index e656899..95d106d 100755 --- a/genbook.sh +++ b/genbook.sh @@ -1,8 +1,10 @@ #!/bin/sh -size="$1" -opts="$2" +size="$1" # board size +opts="$2" # UCT engine options; must NOT specify different policy +popts="$3" # UCT policy options [ -n "$size" ] || size=9 [ -z "$opts" ] || opts=",$opts" +[ -z "$popts" ] || popts=":$popts" rm uctbook-$size-7.5.pachitree n=0 @@ -10,7 +12,8 @@ genbook1() { echo "[#$n:$1]" n=$((n+1)) - echo -e 'boardsize '$size'\nclear_board\nkomi 7.5\nuct_genbook b' | ./zzgo "games=1000000,explore_p=$1$opts" + echo -e 'boardsize '$size'\nclear_board\nkomi 7.5\nuct_genbook b' | + ./zzgo "games=1000000,policy=ucb1amaf:explore_p=$1$popts$opts" } genbook1 0.1 genbook1 0.2 -- 2.11.4.GIT