From 4fc0f07e78eac5ac75585d96d0025c54e09dc2e4 Mon Sep 17 00:00:00 2001 From: EliasCubz Date: Thu, 29 Oct 2020 09:28:13 +0100 Subject: [PATCH] declare prototype func collision and check if robot is in the map --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index 850f528..3ee6291 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, +) -> Result<(), &'static str> { +} /// Parse the config file, generate the world and robot pool. fn parse_config(conf: String, pool: &mut Vec) -> Result { let mut lines = conf.lines();