Merge branch 'add-world' into 'master'

Add world struct

See merge request mhart/DancingDroids!13
This commit is contained in:
Martin HART 2020-10-19 12:33:08 +02:00
commit ec01c0c1d4
1 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,14 @@
use std::fs; use std::fs;
use std::io; use std::io;
/// Struct to store robot position /// Struct to store the world.
struct World {
x: u32,
y: u32,
map: Vec<char>,
}
/// Struct to store robot position.
struct Position { struct Position {
x: u32, x: u32,
y: u32, y: u32,