Expand description
Zobrist hashing for positions.
Stability
The Zobrist hash for each position is guaranteed to be stable. Changing hash values is considered a semver breaking change and will be noted in the changelog.
Examples
use shakmaty::{Chess, zobrist::ZobristHash};
let pos = Chess::default();
assert_eq!(pos.zobrist_hash::<u64>(), 0x463b96181691fc9c);
Structs
Traits
Supports Zobrist hashing.
Integer type that can be returned as a Zobrist hash.