diff options
Diffstat (limited to 'src/board/zobrist.rs')
-rw-r--r-- | src/board/zobrist.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/board/zobrist.rs b/src/board/zobrist.rs index e282074..8ea0038 100644 --- a/src/board/zobrist.rs +++ b/src/board/zobrist.rs @@ -71,9 +71,6 @@ impl Zobrist for Board { } fn zobrist_toggle_color(&mut self) -> () { - self.hash ^= match self.zobrist_seed.last() { - Some(x) => x, - None => panic!("Something is wrong with zobrist seed list"), - }; + self.hash ^= self.zobrist_seed[ZOBRIST_SEED_SIZE - 1]; } } |