declare prototype func collision and check if robot is in the map
This commit is contained in:
parent
15b68ae764
commit
4fc0f07e78
@ -20,6 +20,13 @@ use std::io;
|
|||||||
mod robot;
|
mod robot;
|
||||||
mod world;
|
mod world;
|
||||||
|
|
||||||
|
fn check_map(r: &robot::Robot, w: &world::World) -> Result<(), &'static str> {}
|
||||||
|
fn check_collisions(
|
||||||
|
w: &world::World,
|
||||||
|
r: &robot::Robot,
|
||||||
|
h: &collection::HashMap<robot::Position, u32>,
|
||||||
|
) -> Result<(), &'static str> {
|
||||||
|
}
|
||||||
/// Parse the config file, generate the world and robot pool.
|
/// Parse the config file, generate the world and robot pool.
|
||||||
fn parse_config(conf: String, pool: &mut Vec<robot::Robot>) -> Result<world::World, &'static str> {
|
fn parse_config(conf: String, pool: &mut Vec<robot::Robot>) -> Result<world::World, &'static str> {
|
||||||
let mut lines = conf.lines();
|
let mut lines = conf.lines();
|
||||||
|
Loading…
Reference in New Issue
Block a user