declare prototype func collision and check if robot is in the map

This commit is contained in:
EliasCubz 2020-10-29 09:28:13 +01:00
parent 15b68ae764
commit 4fc0f07e78
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ use std::io;
mod robot;
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.
fn parse_config(conf: String, pool: &mut Vec<robot::Robot>) -> Result<world::World, &'static str> {
let mut lines = conf.lines();