Chess-Web / neural_engine /src /bin /test_zobrist.rs
dpv007's picture
Upload folder using huggingface_hub
2033304 verified
Raw
History Blame Contribute Delete
245 Bytes
use shakmaty::{Chess, Position};
use shakmaty::zobrist::{Zobrist64, ZobristHash};
fn main() {
let board = Chess::default();
let hash = board.zobrist_hash::<Zobrist64>(shakmaty::EnPassantMode::Legal);
println!("Hash: {}", hash.0);
}