This struct computes and stores piece moves per square to speed up computation of move lists. Initialize a `static mut` instance once via std::sync::Once, and return a static reference to it. So far, it computes king and knight moves. Make BitBoard::empty() and MoveLibrary::new() const functions, enabling static construction of the MOVE_LIBRARY instance without needing to wrap it in an Option. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.lock | ||
| Cargo.toml | ||