pub mod agent; pub mod view; pub mod world; use agent::{Agent, SimpleAgent}; use world::ActualWorld; pub fn get_world(width: isize, height: isize, spacing: usize, validating: bool) -> ActualWorld { let mut agents: Vec<(_, Box)> = vec![]; for x in (0..width).step_by(spacing) { for y in (0..height).step_by(spacing) { agents.push(((x, y).into(), Box::new(SimpleAgent))); } } ActualWorld::new((width, height).into(), agents, validating) }