From 4471ce1dafd24d93b0cbb197f3f74008cba0953c Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 22 Dec 2009 21:51:53 +0100 Subject: [PATCH] playout.h: Comment all hte playoutp_* typedefs --- playout.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playout.h b/playout.h index f77b968..275dbd6 100644 --- a/playout.h +++ b/playout.h @@ -16,12 +16,14 @@ struct playout_policy; /* Initialize policy data structures for new playout; subsequent choose calls * (but not assess/permit calls!) will all be made on the same board. */ typedef void (*playoutp_setboard)(struct playout_policy *playout_policy, struct board *b); +/* Pick the next playout simulation move. */ typedef coord_t (*playoutp_choose)(struct playout_policy *playout_policy, struct board *b, enum stone to_play); /* Set number of won (>0) or lost (<0) games for each considerable * move (usually a proportion of @games); can leave some untouched * if policy has no opinion. The number must have proper parity; * just use uct/prior.h:add_prior_value(). */ typedef void (*playoutp_assess)(struct playout_policy *playout_policy, struct prior_map *map, int games); +/* Allow play of randomly selected move. */ typedef bool (*playoutp_permit)(struct playout_policy *playout_policy, struct board *b, struct move *m); struct playout_policy { -- 2.11.4.GIT