diff --git a/src/grid.rs b/src/grid.rs index 12e3f0c..37a3b75 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -60,9 +60,6 @@ impl Grid { rng: &mut R, agents: Vec, ) -> Self { - if !width.is_power_of_two() || !height.is_power_of_two() { - panic!("Grid dimensions must be a power of two."); - } let range = Uniform::from(0.0..1.0); let data = rng.sample_iter(range).take(width * height).collect();