struct joseki -> struct joseki_pattern
[pachi/ann.git] / joseki / base.h
blobd6939a08f6d5fcceab0f07fe9130a21ccf4495d4
1 #ifndef ZZGO_JOSEKI_BASE_H
2 #define ZZGO_JOSEKI_BASE_H
4 #include "board.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 */
9 coord_t *moves[2];
12 #define joseki_hash_bits 20 // 8M w/ 32-bit pointers
13 #define joseki_hash_mask ((1 << joseki_hash_bits) - 1)
14 extern struct joseki_pattern joseki_pats[];
16 void joseki_load(void);
18 #endif