added struct World

This commit is contained in:
Volodymyr Patuta 2020-10-19 12:23:38 +02:00
parent c95797d4cf
commit b2b00d0d62

View File

@ -1,7 +1,13 @@
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,
}
/// Struct to store robot position.
struct Position { struct Position {
x: u32, x: u32,
y: u32, y: u32,