From b2b00d0d62800bd4772fafaf46c467467e011569 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <6977238-fiplox@users.noreply.gitlab.com> Date: Mon, 19 Oct 2020 12:23:38 +0200 Subject: [PATCH 1/2] added struct World --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a362e2e..f2def9a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,13 @@ use std::fs; 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 { x: u32, y: u32, From 22cf314f4d8955ac3a71272282916a923a694187 Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <6977238-fiplox@users.noreply.gitlab.com> Date: Mon, 19 Oct 2020 12:32:14 +0200 Subject: [PATCH 2/2] add map --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index f2def9a..5bfd178 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,7 @@ use std::io; struct World { x: u32, y: u32, + map: Vec, } /// Struct to store robot position.