ref: 895af3a6c0ece7ed089ee2a5356cb1933a30cca3
dir: /dat.h/
typedef struct Gogame Gogame;
typestr struct _vec Vec;
/* WHITE and BLACK should be in sync in both enums */
typedef enum {
GWAIT,
GBLACK,
GWHITE,
GFINISH,
} Gostate;
typedef enum {
EMPTY,
BLACK,
WHITE,
WASBLACK,
WASWHITE,
} Gostone;
struct _vec {
int x;
int y;
};
struct Gogame {
Gostate state;
Vec size;
Gostone *board;
int whitecaptures;
int blackcaptures;
};