diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/board/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/board/mod.rs b/src/board/mod.rs index 01a5b03..82a9e7f 100644 --- a/src/board/mod.rs +++ b/src/board/mod.rs @@ -390,7 +390,7 @@ impl Board { } pub fn threefold_repetition(&self) -> bool { - self.positions.iter().filter(|&&p| p == self.hash).count() >= 3 + self.positions.iter().filter(|&&p| p == self.hash).count() >= 2 } pub fn is_theoretically_winnable(&self, color: Color) -> bool { |