aboutsummaryrefslogtreecommitdiff
path: root/src/board/zobrist.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-09-03 17:32:31 +0300
committereug-vs <eugene@eug-vs.xyz>2023-09-03 18:23:52 +0300
commit9927af55dd12bc5eca7ff17e9dbc2665c42fcfb7 (patch)
treebfbb33376f8d9ba84de21d626e6fb8dda4d1471a /src/board/zobrist.rs
parent81b0addcc9d5ff2b428981ca88ee0acdec4db2a9 (diff)
downloadchessnost-master.tar.gz
refactor: separate threefold_repetitionHEADmaster
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;