diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-09-03 17:32:31 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-09-03 18:23:52 +0300 |
commit | 9927af55dd12bc5eca7ff17e9dbc2665c42fcfb7 (patch) | |
tree | bfbb33376f8d9ba84de21d626e6fb8dda4d1471a /src/board/zobrist.rs | |
parent | 81b0addcc9d5ff2b428981ca88ee0acdec4db2a9 (diff) | |
download | chessnost-master.tar.gz |
Diffstat (limited to 'src/board/zobrist.rs')
-rw-r--r-- | src/board/zobrist.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/board/zobrist.rs b/src/board/zobrist.rs index 88a2fb7..251f333 100644 --- a/src/board/zobrist.rs +++ b/src/board/zobrist.rs @@ -11,7 +11,9 @@ const TOTAL_FILES: usize = 8; const TOTAL_CASTLING_RIGHTS: usize = 4; const ZOBRIST_SEED_SIZE: usize = TOTAL_SQUARES * TOTAL_PIECES + TOTAL_CASTLING_RIGHTS + TOTAL_FILES + 1; -pub type ZobristSeed = [u64; ZOBRIST_SEED_SIZE]; +pub type ZobristHash = u64; + +pub type ZobristSeed = [ZobristHash; ZOBRIST_SEED_SIZE]; pub trait Zobrist { fn seed() -> ZobristSeed; |