From dc0990af8f40388d6db69a48db2decb267f4166d Mon Sep 17 00:00:00 2001 From: r6144 Date: Wed, 13 Jul 2011 23:46:33 +0800 Subject: [PATCH] Need to investigate why a pass isn't generated even though it is the winner of the tree. --- t-gtp/110713-379-pass.gtp | 382 +++++++++++++++++++++++++++++++++++++++ t-gtp/110713-399-mustpass.gtp | 402 ++++++++++++++++++++++++++++++++++++++++++ uct/policy/ucb1amaf.c | 3 +- 3 files changed, 786 insertions(+), 1 deletion(-) create mode 100644 t-gtp/110713-379-pass.gtp create mode 100644 t-gtp/110713-399-mustpass.gtp diff --git a/t-gtp/110713-379-pass.gtp b/t-gtp/110713-379-pass.gtp new file mode 100644 index 0000000..27d8453 --- /dev/null +++ b/t-gtp/110713-379-pass.gtp @@ -0,0 +1,382 @@ +boardsize 19 +clear_board +komi 6.5 +play B p17 +play W p3 +play B e3 +play W c15 +play B c17 +play W f17 +play B c9 +play W j17 +play B m11 +play W m17 +play B l3 +play W r8 +play B r13 +play W c6 +play B c12 +play W c3 +play B c4 +play W d4 +play B d3 +play W b4 +play B e4 +play W d5 +play B c2 +play W b3 +play B n6 +play W r6 +play B e16 +play W e17 +play B d16 +play W b2 +play B f16 +play W g16 +play B g15 +play W h16 +play B h15 +play W j15 +play B j14 +play W k15 +play B e5 +play W e6 +play B f6 +play W e7 +play B f7 +play W e8 +play B k14 +play W f8 +play B g8 +play W g9 +play B h8 +play W c16 +play B d17 +play W l14 +play B l13 +play W s17 +play B m14 +play W l15 +play B f9 +play W k13 +play B j13 +play W k12 +play B j12 +play W e9 +play B f10 +play W e10 +play B e11 +play W d11 +play B d12 +play W f11 +play B e12 +play W g10 +play B r15 +play W m13 +play B l12 +play W m4 +play B l4 +play W k11 +play B m5 +play W n14 +play B r18 +play W b11 +play B c11 +play W r17 +play B q17 +play W b12 +play B b10 +play W b13 +play B b17 +play W c14 +play B e14 +play W b16 +play B a16 +play W a15 +play B j10 +play W s18 +play B q18 +play W q16 +play B p15 +play W s15 +play B r16 +play W s16 +play B s14 +play W q15 +play B r14 +play W q14 +play B q12 +play W p14 +play B s19 +play W d10 +play B c10 +play W j11 +play B h11 +play W k10 +play B j9 +play W m10 +play B n11 +play W n10 +play B l10 +play W k9 +play B l9 +play W k8 +play B l11 +play W j8 +play B j7 +play W k7 +play B k6 +play W h9 +play B l8 +play W l7 +play B m7 +play W l6 +play B l5 +play W h10 +play B r3 +play W j6 +play B q5 +play W r5 +play B q4 +play W s4 +play B h3 +play W o17 +play B o18 +play W s3 +play B n17 +play W n16 +play B o16 +play W r2 +play B m18 +play W e18 +play B g13 +play W a17 +play B l17 +play W m15 +play B a11 +play W b14 +play B q9 +play W p7 +play B r9 +play W o5 +play B o6 +play W p6 +play B o4 +play W p5 +play B p4 +play W n5 +play B n4 +play W m6 +play B o11 +play W s9 +play B s10 +play W q2 +play B s8 +play W n2 +play B m2 +play W g4 +play B g3 +play W s7 +play B n8 +play W j4 +play B j3 +play W o8 +play B g5 +play W n7 +play B h7 +play W k5 +play B o13 +play W o14 +play B t9 +play W h6 +play B k18 +play W n3 +play B m3 +play W m8 +play B h18 +play W j18 +play B j19 +play W g18 +play B g7 +play W b8 +play B n13 +play W h17 +play B k16 +play W j16 +play B h19 +play W o15 +play B p16 +play W k17 +play B m16 +play W g19 +play B k19 +play W l16 +play B c8 +play W m1 +play B b7 +play W c7 +play B l1 +play W a8 +play B d2 +play W d15 +play B e15 +play W o10 +play B p12 +play W h12 +play B o3 +play W f12 +play B f13 +play W o2 +play B q3 +play W p2 +play B h13 +play W h4 +play B p10 +play W f4 +play B f5 +play W a12 +play B f3 +play W d13 +play B e13 +play W k3 +play B k2 +play W m17 +play B l18 +play W k4 +play B n1 +play W g12 +play B d18 +play W b18 +play B a18 +play W a19 +play B b9 +play W b6 +play B g14 +play W m16 +play B p9 +play W m9 +play B o1 +play W c19 +play B t7 +play W t6 +play B b1 +play W p1 +play B m1 +play W d19 +play B t8 +play W m12 +play B n12 +play W m14 +play B d8 +play W h5 +play B d7 +play W q13 +play B d6 +play W c5 +play B q7 +play W q6 +play B q8 +play W r7 +play B a2 +play W a3 +play B o9 +play W n9 +play B a10 +play W p8 +play B m4 +play W r4 +play B d9 +play W a7 +play B c1 +play W p13 +play B a1 +play W c18 +play B d14 +play W c13 +play B a9 +play W s2 +play B g6 +play W s6 +play B r12 +play W f9 +play B j1 +play W a5 +play B n19 +play W o7 +play B f14 +play W g11 +play B e1 +play W k6 +play B n18 +play W r19 +play B t17 +play W s1 +play B q19 +play W g17 +play B f18 +play W f19 +play B j9 +play W j10 +play B t2 +play W t3 +play B g1 +play W t1 +play B q11 +play W e19 +play B r1 +play W q1 +play B t18 +play W a16 +play B t15 +play W a18 +play B a13 +play W a14 +play B t19 +play W t5 +play B t10 +play W n6 +play B t16 +play W g2 +play B f2 +play W s12 +play B e2 +play W t12 +play B o12 +play W s11 +play B r11 +play W t13 +play B h2 +play W t14 +play B t11 +play W s17 +play B o17 +play W s16 +play B s13 +play W s18 +play B r17 +play W t13 +play B k1 +play W t12 +play B s9 +play W s12 +play B p18 +play W r10 +play B p19 +play W t14 +play B o19 +play W m19 +play B g2 +play W a6 +play B r19 +play W t4 +play B p11 +play W n8 +play B d1 +play W h11 +play B q10 +play W f10 +play B l2 +play W r1 +play B s15 +play W s17 +genmove B diff --git a/t-gtp/110713-399-mustpass.gtp b/t-gtp/110713-399-mustpass.gtp new file mode 100644 index 0000000..71212ab --- /dev/null +++ b/t-gtp/110713-399-mustpass.gtp @@ -0,0 +1,402 @@ +boardsize 19 +clear_board +komi 6.5 +play B p17 +play W p3 +play B e3 +play W c15 +play B c17 +play W f17 +play B c9 +play W j17 +play B m11 +play W m17 +play B l3 +play W r8 +play B r13 +play W c6 +play B c12 +play W c3 +play B c4 +play W d4 +play B d3 +play W b4 +play B e4 +play W d5 +play B c2 +play W b3 +play B n6 +play W r6 +play B e16 +play W e17 +play B d16 +play W b2 +play B f16 +play W g16 +play B g15 +play W h16 +play B h15 +play W j15 +play B j14 +play W k15 +play B e5 +play W e6 +play B f6 +play W e7 +play B f7 +play W e8 +play B k14 +play W f8 +play B g8 +play W g9 +play B h8 +play W c16 +play B d17 +play W l14 +play B l13 +play W s17 +play B m14 +play W l15 +play B f9 +play W k13 +play B j13 +play W k12 +play B j12 +play W e9 +play B f10 +play W e10 +play B e11 +play W d11 +play B d12 +play W f11 +play B e12 +play W g10 +play B r15 +play W m13 +play B l12 +play W m4 +play B l4 +play W k11 +play B m5 +play W n14 +play B r18 +play W b11 +play B c11 +play W r17 +play B q17 +play W b12 +play B b10 +play W b13 +play B b17 +play W c14 +play B e14 +play W b16 +play B a16 +play W a15 +play B j10 +play W s18 +play B q18 +play W q16 +play B p15 +play W s15 +play B r16 +play W s16 +play B s14 +play W q15 +play B r14 +play W q14 +play B q12 +play W p14 +play B s19 +play W d10 +play B c10 +play W j11 +play B h11 +play W k10 +play B j9 +play W m10 +play B n11 +play W n10 +play B l10 +play W k9 +play B l9 +play W k8 +play B l11 +play W j8 +play B j7 +play W k7 +play B k6 +play W h9 +play B l8 +play W l7 +play B m7 +play W l6 +play B l5 +play W h10 +play B r3 +play W j6 +play B q5 +play W r5 +play B q4 +play W s4 +play B h3 +play W o17 +play B o18 +play W s3 +play B n17 +play W n16 +play B o16 +play W r2 +play B m18 +play W e18 +play B g13 +play W a17 +play B l17 +play W m15 +play B a11 +play W b14 +play B q9 +play W p7 +play B r9 +play W o5 +play B o6 +play W p6 +play B o4 +play W p5 +play B p4 +play W n5 +play B n4 +play W m6 +play B o11 +play W s9 +play B s10 +play W q2 +play B s8 +play W n2 +play B m2 +play W g4 +play B g3 +play W s7 +play B n8 +play W j4 +play B j3 +play W o8 +play B g5 +play W n7 +play B h7 +play W k5 +play B o13 +play W o14 +play B t9 +play W h6 +play B k18 +play W n3 +play B m3 +play W m8 +play B h18 +play W j18 +play B j19 +play W g18 +play B g7 +play W b8 +play B n13 +play W h17 +play B k16 +play W j16 +play B h19 +play W o15 +play B p16 +play W k17 +play B m16 +play W g19 +play B k19 +play W l16 +play B c8 +play W m1 +play B b7 +play W c7 +play B l1 +play W a8 +play B d2 +play W d15 +play B e15 +play W o10 +play B p12 +play W h12 +play B o3 +play W f12 +play B f13 +play W o2 +play B q3 +play W p2 +play B h13 +play W h4 +play B p10 +play W f4 +play B f5 +play W a12 +play B f3 +play W d13 +play B e13 +play W k3 +play B k2 +play W m17 +play B l18 +play W k4 +play B n1 +play W g12 +play B d18 +play W b18 +play B a18 +play W a19 +play B b9 +play W b6 +play B g14 +play W m16 +play B p9 +play W m9 +play B o1 +play W c19 +play B t7 +play W t6 +play B b1 +play W p1 +play B m1 +play W d19 +play B t8 +play W m12 +play B n12 +play W m14 +play B d8 +play W h5 +play B d7 +play W q13 +play B d6 +play W c5 +play B q7 +play W q6 +play B q8 +play W r7 +play B a2 +play W a3 +play B o9 +play W n9 +play B a10 +play W p8 +play B m4 +play W r4 +play B d9 +play W a7 +play B c1 +play W p13 +play B a1 +play W c18 +play B d14 +play W c13 +play B a9 +play W s2 +play B g6 +play W s6 +play B r12 +play W f9 +play B j1 +play W a5 +play B n19 +play W o7 +play B f14 +play W g11 +play B e1 +play W k6 +play B n18 +play W r19 +play B t17 +play W s1 +play B q19 +play W g17 +play B f18 +play W f19 +play B j9 +play W j10 +play B t2 +play W t3 +play B g1 +play W t1 +play B q11 +play W e19 +play B r1 +play W q1 +play B t18 +play W a16 +play B t15 +play W a18 +play B a13 +play W a14 +play B t19 +play W t5 +play B t10 +play W n6 +play B t16 +play W g2 +play B f2 +play W s12 +play B e2 +play W t12 +play B o12 +play W s11 +play B r11 +play W t13 +play B h2 +play W t14 +play B t11 +play W s17 +play B o17 +play W s16 +play B s13 +play W s18 +play B r17 +play W t13 +play B k1 +play W t12 +play B s9 +play W s12 +play B p18 +play W r10 +play B p19 +play W t14 +play B o19 +play W m19 +play B g2 +play W a6 +play B r19 +play W t4 +play B p11 +play W n8 +play B d1 +play W h11 +play B q10 +play W f10 +play B l2 +play W r1 +play B s15 +play W s17 +play B j2 +play W s16 +play B r10 +play W s5 +play B l19 +play W j9 +play B s11 +play W t12 +play B s18 +play W t13 +play B s16 +play W t14 +play B s12 +play W t13 +play B t12 +play W f18 +play B t14 +play W a13 +play B s17 +play W b15 +genmove B diff --git a/uct/policy/ucb1amaf.c b/uct/policy/ucb1amaf.c index fbcc734..e1f6b5c 100644 --- a/uct/policy/ucb1amaf.c +++ b/uct/policy/ucb1amaf.c @@ -154,7 +154,8 @@ ucb1rave_descend(struct uct_policy *p, struct tree *tree, struct uct_descent *de struct tree_node *ni = di.node; urgency = ucb1rave_evaluate(p, tree, &di, parity); - if (explore_p > 0 && !is_pass(ni->coord)) { + if (explore_p > 0) { + /* It is probably safe to include passes, although passes will still be generated without the extra urgency. */ /* Infinite first-play urgency will somehow break things... */ floating_t coef = (ni->u.playouts > 0) ? 1.0f / fast_sqrt(ni->u.playouts) : 2.0f; urgency += explore_p * nconf * coef; -- 2.11.4.GIT