uct_search_stop_early(): Consider cannot-change break only after estimate gets sensible
[pachi/pachi-r6144.git] / joseki / base.h
blobb5b1cfb70a396ea699f6b293e9c4fe3b74d63bb4
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 /* The joseki dictionary for given board size. */
13 struct joseki_dict {
14 int bsize;
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 *);
25 #endif