[position] Remove the Perft trait
It wasn't serving a purpose.
This commit is contained in:
		
							parent
							
								
									f3b31d5514
								
							
						
					
					
						commit
						6996cbeb15
					
				
					 1 changed files with 2 additions and 6 deletions
				
			
		|  | @ -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) | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue