gochatai/pachi_py/pachi/uct/walk.c
/* Live gfx: show best sequence in GoGui */
Live gfx: show best sequence in GoGui
Live gfx : show best sequence in GoGui
static void
uct_progress_gogui_sequence(struct uct *u, struct tree *t, enum stone color, int playouts)
{
	struct tree_node *best = u->policy->choose(u->policy, t->root, t->board, color, resign);
	if (!best) {
		fprintf(stderr, "... No moves left\n");
		return;
	}
	fprintf(stderr, "gogui-gfx: VAR ");
	char *col = "bw";
	for (int depth = 0; depth < 4; depth++) {
		if (best && best->u.playouts >= 25) {
			fprintf(stderr, "%c %3s ", 
				col[(depth + (color == S_WHITE)) % 2],
				coord2sstr(node_coord(best), t->board));
			best = u->policy->choose(u->policy, best, t->board, color, resign);
		}
	}
	fprintf(stderr, "\n");	
}
static void uct_progress_gogui_sequence ( struct uct * u , struct tree * t , enum stone color , int playouts ) { struct tree_node * best = u -> policy -> choose ( u -> policy , t -> root , t -> board , color , resign ) ; if ( ! best ) { fprintf ( stderr , " \n " ) ; return ; } fprintf ( stderr , " " ) ; char * col = " " ; for ( int depth = 0 ; depth < 4 ; depth ++ ) { if ( best && best -> u . playouts >= 25 ) { fprintf ( stderr , " " , col [ ( depth + ( color == S_WHITE ) ) % 2 ] , coord2sstr ( node_coord ( best ) , t -> board ) ) ; best = u -> policy -> choose ( u -> policy , best , t -> board , color , resign ) ; } } fprintf ( stderr , " \n " ) ; }
Live gfx: show best sequence in GoGui
Live gfx : show best sequence in GoGui
/* Best move */