diff --git a/niktoi b/niktoi new file mode 100644 index 0000000..2bb9559 --- /dev/null +++ b/niktoi @@ -0,0 +1,2 @@ +niktoi + diff --git a/src/main.rs b/src/main.rs index 6609ca7..9fee27b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -198,6 +198,22 @@ fn open_file(filename: &str) -> io::Result { Ok(content) } +fn display_grid(h: HashMap<>, ){ + for (i=0;j + match robot_pool[id-1].o { + "N" => println!("fleche du haut"), + "E" => println!("fleche a droite"), + "W" => println!("fleche a gauche"), + "S" => println!("fleche en bas"), + + }, + None => println!("."), + + } + } +} fn main() -> Result<(), Box> { // We handle CLI flags here. let matches = App::new("DancingDroids")