From 9927af55dd12bc5eca7ff17e9dbc2665c42fcfb7 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 3 Sep 2023 17:32:31 +0300 Subject: refactor: separate threefold_repetition --- src/board/zobrist.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/board/zobrist.rs') 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; -- cgit v1.2.3