1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#[cfg(not(feature = "thread-safe"))]
use std::rc::Rc;
#[cfg(feature = "thread-safe")]
use std::sync::Arc;
use ahash::AHashSet;
use by_address::ByAddress;
use crate::pieces::go_string::GoString;
#[cfg(not(feature = "thread-safe"))]
type Ptr<T> = Rc<T>;
#[cfg(feature = "thread-safe")]
type Ptr<T> = Arc<T>;
type GoStringPtr = ByAddress<Ptr<GoString>>;
type Set<T> = AHashSet<T>;
pub(super) type Nat = u8;
pub mod go_string;
pub mod goban;
pub mod stones;
pub mod territory;
pub mod util;
pub mod zobrist;
pub mod neighbor;