[position] Remove the Perft trait

It wasn't serving a purpose.
This commit is contained in:
Eryn Wells 2025-06-17 16:42:57 -07:00
parent f3b31d5514
commit 6996cbeb15

View file

@ -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)
}
}