overhaul chain system

This made the code so fast, that the `board` benchmark became completely useless.
So that benchmark was removed.

Overall, we're looking at a futher 20% performance increase in `future_moves`
This commit is contained in:
2025-03-04 13:18:17 -05:00
parent fa7ad34dcb
commit 204ba85202
10 changed files with 190 additions and 295 deletions

View File

@@ -135,8 +135,8 @@ impl PlayerArena {
}
fn create_agents(
player_1_fn: &Box<dyn Fn(Piece) -> Box<dyn Agent>>,
player_2_fn: &Box<dyn Fn(Piece) -> Box<dyn Agent>>,
player_1_fn: &dyn Fn(Piece) -> Box<dyn Agent>,
player_2_fn: &dyn Fn(Piece) -> Box<dyn Agent>,
) -> (Box<dyn Agent>, Box<dyn Agent>) {
(player_1_fn(Piece::Black), player_2_fn(Piece::White))
}