Remove prinln!() debug test
This commit is contained in:
parent
c9241e4c4b
commit
843a26fa90
11
src/main.rs
11
src/main.rs
@ -185,6 +185,7 @@ fn parse_config(conf: String, pool: &mut Vec<robot::Robot>) -> Result<world::Wor
|
||||
Err(err) => return Err(err),
|
||||
}
|
||||
}
|
||||
|
||||
Ok(w)
|
||||
}
|
||||
|
||||
@ -213,16 +214,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let mut robot_pool: Vec<robot::Robot> = Vec::new();
|
||||
let world: world::World = parse_config(raw_conf, &mut robot_pool)?;
|
||||
|
||||
println!("World -> x: {}, y: {}", world.x, world.y);
|
||||
println!("Number of robot -> {}", robot_pool.len());
|
||||
println!(
|
||||
"robot_pool[0] -> id: {}, x: {}, y: {}",
|
||||
robot_pool[0].id, robot_pool[0].p.x, robot_pool[0].p.y
|
||||
);
|
||||
println!(
|
||||
"robot_pool[1] -> id: {}, x: {}, y: {}",
|
||||
robot_pool[1].id, robot_pool[1].p.x, robot_pool[1].p.y
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user