diff options
Diffstat (limited to 'src/moves.rs')
-rw-r--r-- | src/moves.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/moves.rs b/src/moves.rs index 858fe43..e27d74c 100644 --- a/src/moves.rs +++ b/src/moves.rs @@ -25,10 +25,6 @@ impl Move { /// Tactical move is a move that changes material score pub fn is_tactical(&self) -> bool { - match self.kind { - MoveKind::Capture => true, - MoveKind::EnPassant => true, - _ => false, - } + matches!(self.kind, MoveKind::Capture | MoveKind::EnPassant) } } |