uct_player: color -> node_color
[pachi/json.git] / playout / light.c
blob69ebc15b98b9b664e91ac3cd089c94226ffb303a
1 #include <assert.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 #include "board.h"
6 #include "debug.h"
7 #include "playout.h"
8 #include "playout/light.h"
9 #include "random.h"
12 /* This file is licensed under the same way as Pachi base, not
13 * under GPLv2+. */
15 #define PLDEBUGL(n) DEBUGL_(p->debug_level, n)
18 coord_t
19 playout_light_choose(struct playout_policy *p, struct board *b, enum stone our_real_color)
21 return pass;
25 struct playout_policy *
26 playout_light_init(char *arg)
28 struct playout_policy *p = calloc(1, sizeof(*p));
29 p->choose = playout_light_choose;
31 if (arg)
32 fprintf(stderr, "playout-light: This policy does not accept arguments (%s)\n", arg);
34 return p;