simplify agents initialization
This commit is contained in:
parent
c71e0e16cf
commit
c95bd6b5c5
|
@ -558,7 +558,7 @@ pub fn run(config: Config, rle: Option<String>) -> Result<()> {
|
||||||
}
|
}
|
||||||
.map_err(Error::Read)?;
|
.map_err(Error::Read)?;
|
||||||
|
|
||||||
let mut agents: Vec<Agent> = Vec::new();
|
let mut agents = Vec::<Agent>::new();
|
||||||
|
|
||||||
for _ in 0..config.gen_depth {
|
for _ in 0..config.gen_depth {
|
||||||
let mut pop = Population::new(&config, map.clone());
|
let mut pop = Population::new(&config, map.clone());
|
||||||
|
|
Loading…
Reference in New Issue