Thanks to visit codestin.com
Credit goes to lib.rs

#chess #shogi #no-std

no-std haitaka-types

Internal data types library for haitaka

4 releases

Uses new Rust 2024

0.1.3 May 7, 2025
0.1.2 Apr 16, 2025
0.1.1 Apr 14, 2025
0.1.0 Apr 10, 2025

#442 in Games

Codestin Search App Codestin Search App

255 downloads per month
Used in 2 crates

MIT license

130KB
2K SLoC

haitaka-types ハイタカ型

Internal package for haitaka

This package defines the core data types used in haitaka. It's not intended as stand-alone library (though nothing will prevent you from using it like that).

Splitting off the data types into a separate crate allows haitaka to run a build script to generate slider move hash tables used in move generation based on magic bitboard. Without a separate crate to run against the build script would have to duplicate quite a bit of code or the library would need a separate initialization function -- either as a hidden, lazy initialization or as an explicit initialization step. Both those alternatives are less than ideal.

Setting up a separate crate also ensures a clearer separation of concerns making the codebase easier to maintain, test, and extend.

No runtime deps

Features