haitaka/
lib.rs

1//#![cfg_attr(not(any(feature = "std", test)), no_std)]
2#![doc = include_str!("../README.md")]
3
4//! # Examples
5//!
6//! This crate also includes some examples that illustrate the API and can be used as tools. You can find them in the
7//! `examples` directory of the repository:
8//!
9//! - [Find Magics](https://github.com/tofutofu/haitaka/tree/main/haitaka/examples/find_magics.rs) Generates magic numbers for slider moves.
10//! - [Perft](https://github.com/tofutofu/haitaka/tree/main/haitaka/examples/perft.rs) A perft implementation for Shogi.
11//!
12//! To run an example, clone the reposity and use one of the following commands:
13//!
14//! ```bash
15//! cargo run --release --example find_magics -- --verbose
16//! cargo run --release --example perft -- 3
17//! ```
18
19use haitaka_types::*;
20
21pub use bitboard::*;
22pub use color::*;
23pub use file::*;
24pub use piece::*;
25pub use rank::*;
26pub use shogi_move::*;
27pub use sliders::*;
28pub use square::*;
29
30pub mod attacks;
31pub mod board;
32pub mod slider_moves;
33
34pub use attacks::*;
35pub use board::*;
36pub use slider_moves::*;