From 22a95da6ac76c9520333af2ae0cc1bc333f8f958 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 13 Feb 2010 02:17:26 +0100 Subject: [PATCH] Autotest: Support handicap specification --- t-play/autotest/autotest-worker | 3 ++- t-play/autotest/rc | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/t-play/autotest/autotest-worker b/t-play/autotest/autotest-worker index 621fd0b..35afb82 100755 --- a/t-play/autotest/autotest-worker +++ b/t-play/autotest/autotest-worker @@ -86,11 +86,12 @@ prun_get() { } prun_get prun_black "$p_black" $pa_black prun_get prun_white "$p_white" $pa_white +komi="$(pairing_param $pair komi | sed 's/^h/0.5 -handicap /')" # Run twogtp! rm -f "c/$clientid"/scratch* -$twogtp_path -black "$prun_black" -white "$prun_white" -auto -verbose -size "$(pairing_param $pair bsize)" -komi "$(pairing_param $pair komi)" -games 1 -sgffile "c/$clientid/scratch" +$twogtp_path -black "$prun_black" -white "$prun_white" -auto -verbose -size "$(pairing_param $pair bsize)" -komi $komi -games 1 -sgffile "c/$clientid/scratch" # Get count of our game mkdir -p "c/$clientid/$pairid" diff --git a/t-play/autotest/rc b/t-play/autotest/rc index 1d5b944..2c6d94b 100644 --- a/t-play/autotest/rc +++ b/t-play/autotest/rc @@ -11,6 +11,8 @@ # twogtp path - we need the gogui twogtp variant (the one that takes -black, # not --black as parameter) twogtp_path="/nfs/drahokam/pasky/gogui-1.1.10/bin/gogui-twogtp" +# If you want handicap support, you will need a custom patch from: +# https://sourceforge.net/tracker/?func=detail&atid=489966&aid=2878719&group_id=59117 ### Players: @@ -38,7 +40,7 @@ player zamafmoggy5k './zzgo-$1 games=5000,pass_all_alive,policy=ucb1amaf,playout # # pairing BOARDSIZE KOMI BLACK PLAYER1 PLAYER1ARGS PLAYER2 PLAYER2ARGS # BOARDSIZE: 9, 19, or whatever flavor you fancy... -# KOMI: 7.5, 0.5, ... (TODO: Handicaps) +# KOMI: 7.5, 0.5, ... OR h2, h6, ... (handicap amount, komi is forced to 0.5) # BLACK: 'a' - black is chosen randomly, useful only if komi is 7.5 # '1' - black is PLAYER1, '2' - black is PLAYER2 # PLAYER: Name of the player as defined above. -- 2.11.4.GIT