562a563
> #define K_RAVE	1000
575,577d575
< #if USE_RAVE_DISCOUNT
<   float f, discount[GG_BOARDSIZE];
< #endif
584,593d581
< #if RAVE_CUTOFF	> 0
<   n_move /= RAVE_CUTOFF;
< #endif
< #if USE_RAVE_DISCOUNT
<   f = 1.0;
<   for(i = 0; i < n_move; i += 1) {
<     rave[i].factor = f;
<     f *= RAVE_DISCOUNT;
<   }
< #endif
596,598d583
< #if USE_RAVE_DISCOUNT
<     discount[rave[i].move] = rave[i].factor;
< #endif
616,618d600
< #if USE_RAVE_DISCOUNT
<       v = 0.5 + (v - 0.5) * discount[move];
< #endif
625,627d606
<   }
<   for(i = level; --i >= 0; ) {
<     p = trace[i].node;
633a613,614
>       v = rave_rt(value, p->color, color);
>       v = rave_rt(v, p->color, board[move]);
635,643c616,617
< if(0) {
< v = rave_rt(value, p->color, color);
< v = rave_rt(v, p->color, board[move]);
< #if USE_RAVE_DISCOUNT
< v = 0.5 + (v - 0.5) * discount[move];
< #endif
< gprintf("Rave uct[%d].%1m=(%+4.1f/%+4.1f) v=%.0f b=%.0f%% l=%d.\n",
<   UCT_NTH(p), move, p->arc[arc].ucb, ucb_rave, v, beta * 100, i);
< }
---
> if(0) gprintf("Rave uct[%d].%1m=(%+4.1f/%+4.1f) v=%.0f b=%.0f%% l=%d.\n",
> 	UCT_NTH(p), move, p->arc[arc].ucb, ucb_rave, v, beta * 100, i);
795,801c769,774
<     if(v < 0.65)		maxrepeat = 15;
<     else if(v < 0.75)	maxrepeat = 13;
<     else if(v < 0.80)	maxrepeat = 11;
<     else if(v < 0.85)	maxrepeat = 9;
<     else if(v < 0.90)	maxrepeat = 5;
<     else if(v < 0.95)	maxrepeat = 3;
<     else if(v < 0.97)	maxrepeat = 2;
---
>     if(v < 0.70)	maxrepeat = 15;
>     else if(v < 0.80)	maxrepeat = 13;
>     else if(v < 0.85)	maxrepeat = 11;
>     else if(v < 0.90)	maxrepeat = 9;
>     else if(v < 0.95)	maxrepeat = 5;
>     else if(v < 0.97)	maxrepeat = 3;
