uct_progress_json(): Remove extra curly braces around choice value
authorPetr Baudis <pasky@ucw.cz>
Mon, 13 Aug 2012 19:48:20 +0000 (13 21:48 +0200)
committerPetr Baudis <pasky@ucw.cz>
Mon, 13 Aug 2012 19:48:20 +0000 (13 21:48 +0200)
uct/walk.c

index 6a3e7d0..6cec36d 100644 (file)
@@ -96,7 +96,7 @@ uct_progress_json(struct uct *u, struct tree *t, enum stone color, int playouts,
 
        if (final) {
                /* Final move choice */
-               fprintf(stderr, ", \"choice\": {\"%s\"}",
+               fprintf(stderr, ", \"choice\": \"%s\"",
                        coord2sstr(*final, t->board));
        } else {
                struct tree_node *best = u->policy->choose(u->policy, t->root, t->board, color, resign);