Merge branch 'add-world' into 'master'
Add world struct See merge request mhart/DancingDroids!13
This commit is contained in:
commit
ec01c0c1d4
@ -1,7 +1,14 @@
|
||||
use std::fs;
|
||||
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 {
|
||||
x: u32,
|
||||
y: u32,
|
||||
|
Loading…
Reference in New Issue
Block a user