cleanup agent structs

This commit is contained in:
2025-03-27 23:54:02 -04:00
parent f32315cb5d
commit a0c07364d1
2 changed files with 4 additions and 14 deletions

View File

@@ -73,9 +73,9 @@ impl Model {
}
let mut grids: Vec<Grid> = Vec::new();
for pop in 0..n_populations {
for _ in 0..n_populations {
let agents = (0..particles_per_grid)
.map(|i| Agent::new(width, height, pop, &mut rng, i))
.map(|_| Agent::new(width, height, &mut rng))
.collect();
grids.push(Grid::new(width, height, &mut rng, agents));
}