Commit Graph

65 Commits

Author SHA1 Message Date
EliasCubz
782fccf31c Added function's description to the doc for check_collisions 2020-10-29 10:32:32 +01:00
EliasCubz
e4b25281f7 function to check collisions at given position 2020-10-29 10:30:11 +01:00
EliasCubz
d35da41c90 test of the function check_map 2020-10-29 10:16:09 +01:00
EliasCubz
2eaf624137 function to check if robot is in the map 2020-10-29 10:05:54 +01:00
EliasCubz
4fc0f07e78 declare prototype func collision and check if robot is in the map 2020-10-29 09:28:13 +01:00
Martin HART
2aa2af59ec simple typo 2020-10-28 18:29:16 +01:00
Martin HART
44545cdc07 This is really bad.... 2020-10-28 18:05:22 +01:00
Martin HART
194d6f5df2 Remove .unwrap() shit 2020-10-28 16:50:49 +01:00
Martin HART
e4001c99c7 add token 2020-10-28 16:42:36 +01:00
Martin HART
9d0b96b4d7 add mut to the pool O_o 2020-10-28 16:17:34 +01:00
Martin HART
0a63ab5b53 exemple token 2020-10-28 14:06:03 +01:00
Martin HART
bbcbfd4d41 Catch the first ligne of the config file
or throw a error !
2020-10-28 13:09:07 +01:00
Martin HART
430e706831 Prototype of the parsing_config() func 2020-10-28 12:36:56 +01:00
Martin HART
77785e0d6d add vec of robot 2020-10-28 12:00:17 +01:00
Martin HART
f88c972ceb Robot type 2020-10-27 22:55:31 +01:00
Martin HART
6f34f27eaa pop() shit 2020-10-27 16:09:44 +01:00
Martin HART
ac6df77d8f pileOfShit.pop() 2020-10-27 15:58:19 +01:00
EliasCubz
00405e0df5 remove instruction related code 2020-10-27 13:32:00 +01:00
EliasCubz
c1685f7f6e remove move left/right 2020-10-27 13:27:57 +01:00
Volodymyr Patuta
f7d86c9991 completed move functions 2020-10-26 20:15:44 +01:00
Volodymyr Patuta
80dfe2d69e add place_robot + tests, changed coordinate calculation, fixed borrowing issues 2020-10-26 20:11:27 +01:00
stephane elias benabdeslam
106b19c73b Update main.rs 2020-10-26 15:29:14 +01:00
stephane elias benabdeslam
9bb4366eb5 Update main.rs 2020-10-26 15:25:18 +01:00
Martin HART
190423aacb Merge branch 'master' of https://framagit.org/mhart/DancingDroids into copyright
sync changes
2020-10-26 13:55:11 +01:00
Martin HART
2486cee7e1 Add copyright 2020-10-26 13:55:05 +01:00
Volodymyr Patuta
9d0dd5e6f7 add tests for is_valid() method 2020-10-26 13:45:04 +01:00
Volodymyr Patuta
62433b0fd2 change position x,y type + method is_valid and test for move robot 2020-10-26 13:32:14 +01:00
Martin HART
771a585446 add test_new_robot() 2020-10-26 13:14:44 +01:00
Martin HART
997b9d8dfb Add create() and new() methods to the Robot type 2020-10-26 13:00:30 +01:00
Martin HART
bb58983b6c Change .create_map() to .create(), and turn* to set* 2020-10-20 21:39:45 +02:00
Volodymyr Patuta
2603fb5751 test of World methods 2020-10-20 17:33:57 +02:00
Martin HART
67c292b9e2 Add empty_position() 2020-10-20 16:57:51 +02:00
Martin HART
569a6eaf94 Change to_ to turn_ 2020-10-20 16:00:26 +02:00
Martin HART
2dba5a9721 add queues to Robot 2020-10-20 15:38:03 +02:00
Volodymyr Patuta
ea4e5bad6d fix arrow type 2020-10-20 14:10:47 +02:00
Martin HART
f1f052bdde add somme comments 2020-10-20 14:06:10 +02:00
Volodymyr Patuta
f639fa3d63 set robot on the map 2020-10-20 13:57:23 +02:00
Martin HART
6c19f303fa Add create_map() 2020-10-20 13:42:32 +02:00
Volodymyr Patuta
7d89451fef we don't want to panic! 2020-10-20 13:17:50 +02:00
Volodymyr Patuta
0966268c85 open_file takes value of arg 2020-10-20 13:03:53 +02:00
Martin HART
861001a2e1 Add flags 2020-10-20 12:48:28 +02:00
Volodymyr Patuta
e58313d76c implement orientation change and instructions to the robot 2020-10-20 11:53:53 +02:00
Volodymyr Patuta
015a8a33ae error handling in main 2020-10-19 12:50:48 +02:00
Volodymyr Patuta
22cf314f4d add map 2020-10-19 12:32:14 +02:00
Volodymyr Patuta
b2b00d0d62 added struct World 2020-10-19 12:23:38 +02:00
mhart
a55a4935ac Rename conf to raw_conf, conf will be the parsed configuration String 2020-10-17 21:17:36 +02:00
mhart
bd89bfa744 Add Vec<Robot> to store all the robots 2020-10-17 21:05:06 +02:00
mhart
8508c53bef Add documentation to main.rs 2020-10-17 18:16:40 +02:00
Volodymyr Patuta
a688c11d4b Changed position to u32 and added ID. 2020-10-16 12:59:40 +02:00
Volodymyr Patuta
918334a3cb position and robot structs 2020-10-16 09:11:28 +02:00