Grid: remove unneeded power of two restriction

This commit is contained in:
2025-03-27 14:51:14 -04:00
parent ab70ce7f53
commit 50e85dec90

View File

@@ -60,9 +60,6 @@ impl Grid {
rng: &mut R,
agents: Vec<Agent>,
) -> 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();