Skip to content
Snippets Groups Projects
Commit f21a2aee authored by Kylian Fontaine's avatar Kylian Fontaine
Browse files

check robot field

parent 80a07cc0
No related branches found
No related tags found
No related merge requests found
......@@ -273,6 +273,10 @@ let info_space (i : information):bool =
| Space _ -> true
| _ -> false
let info_robot (i : information):bool =
match i with
| Robot _ -> true
| _ -> false
(*GRAPH*)
module Node = struct
......@@ -450,7 +454,10 @@ let check_light d : bool =
else (
if not(unique info_space d')
then raise(Failure "Error: Problem of defining space")
else true
else (
if not(unique info_robot d')
then raise(Failure "Error: Problem of defining sensors")
else true)
)
in if check_light d && check_activelyup d && check_sensors_desc d && aux d then true else false
;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment