From c0bea6a0feeeadc24d29c3bb71a0fc4d62109f96 Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Sat, 22 Jan 2011 11:07:53 +0100 Subject: [PATCH] Better defaults for atari_def_no_hopeless, cfgd & local_tree_depth_decay --- playout/moggy.c | 2 +- uct/prior.c | 2 +- uct/walk.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playout/moggy.c b/playout/moggy.c index 83945a5..a5a5df0 100644 --- a/playout/moggy.c +++ b/playout/moggy.c @@ -707,7 +707,7 @@ playout_moggy_init(char *arg, struct board *b, struct joseki_dict *jdict) pp->korate = 20; pp->koage = 4; pp->alwaysccaprate = 20; pp->selfatari_other = true; - pp->atari_def_no_hopeless = true; + pp->atari_def_no_hopeless = !board_large(b); pp->atari_miaisafe = true; /* C is stupid. */ diff --git a/uct/prior.c b/uct/prior.c index ab45f2d..51409fa 100644 --- a/uct/prior.c +++ b/uct/prior.c @@ -242,7 +242,7 @@ uct_prior_init(char *arg, struct board *b) if (p->cfgdn < 0) { const int near = p->eqex*2; - const int far = board_large(b) ? p->eqex*3/4 : p->eqex; + const int far = board_large(b) ? p->eqex*3/2 : p->eqex; int bonuses[] = { 0, near, far, far }; p->cfgdn = 3; p->cfgd_eqex = calloc2(p->cfgdn + 1, sizeof(*p->cfgd_eqex)); diff --git a/uct/walk.c b/uct/walk.c index 0fe723d..0974d8e 100644 --- a/uct/walk.c +++ b/uct/walk.c @@ -539,7 +539,7 @@ uct_playout(struct uct *u, struct board *b, enum stone player_color, struct tree u->policy->update(u->policy, t, n, node_color, player_color, amaf, rval); int pval = LTREE_PLAYOUTS_MULTIPLIER; - if (u->local_tree_depth_decay > 0) + if (u->local_tree && u->local_tree_depth_decay > 0) pval = ((floating_t) pval) / pow(u->local_tree_depth_decay, depth); if (t->use_extra_komi) { -- 2.11.4.GIT