From 6996cbeb15305e135dc9cd4d50428307d1397c0c Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Tue, 17 Jun 2025 16:42:57 -0700 Subject: [PATCH] [position] Remove the Perft trait It wasn't serving a purpose. --- position/src/perft.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/position/src/perft.rs b/position/src/perft.rs index 57af81a..a9ae169 100644 --- a/position/src/perft.rs +++ b/position/src/perft.rs @@ -2,12 +2,8 @@ use crate::{GeneratedMove, Position, ValidateMove}; -pub trait Perft { - fn perft(&mut self, depth: usize) -> u64; -} - -impl Perft for Position { - fn perft(&mut self, depth: usize) -> u64 { +impl Position { + pub fn perft(&mut self, depth: usize) -> u64 { self.perft_recursive(depth, depth) } }