Introduce Joseki Scanner aux engine
[pachi/peepo.git] / joseki / base.h
blob36d00e7c1795d64fc1d105e8de0a42a1590367fd
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 {
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 joseki_pats[];
16 #endif