aboutsummaryrefslogtreecommitdiff
path: root/src/board/zobrist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/board/zobrist.rs')
-rw-r--r--src/board/zobrist.rs4
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;