1 #ifndef ZZGO_JOSEKI_BASE_H
2 #define ZZGO_JOSEKI_BASE_H
6 /* Single joseki situation - moves for S_BLACK-1, S_WHITE-1. */
7 struct joseki_pattern
{
8 /* moves[] is a pass-terminated list or NULL */
12 /* The joseki dictionary for given board size. */
16 #define joseki_hash_bits 20 // 8M w/ 32-bit pointers
17 #define joseki_hash_mask ((1 << joseki_hash_bits) - 1)
18 struct joseki_pattern
*patterns
;
21 struct joseki_dict
*joseki_init(int bsize
);
22 struct joseki_dict
*joseki_load(int bsize
);
23 void joseki_done(struct joseki_dict
*);