Commit Graph

300 Commits

Author SHA1 Message Date
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 15b68ae764 Merge branch 'parsing-config-file' into 'master'
Parsing config file prototype

See merge request mhart/DancingDroids!32
2020-10-29 09:15:51 +01:00
Martin HART 1fff4677cf Merge branch 'pub-robot' into 'master'
pub-issues

See merge request mhart/DancingDroids!34
2020-10-29 08:37:20 +01:00
Volodymyr Patuta 83cbb0094e pub-issues 2020-10-28 21:38:30 +01:00
Martin HART 7c935269f5 Merge branch 'robot' into 'master'
create and move robot + tests

See merge request mhart/DancingDroids!33
2020-10-28 19:58:00 +01:00
Volodymyr Patuta cd15d12549 comment 2020-10-28 19:18:31 +01:00
Volodymyr Patuta b8929887b5 omg... 2020-10-28 19:12:30 +01:00
Martin HART 2aa2af59ec simple typo 2020-10-28 18:29:16 +01:00
Volodymyr Patuta 0931835850 added hash in execute_instruction 2020-10-28 18:20:37 +01:00
Martin HART 44545cdc07 This is really bad.... 2020-10-28 18:05:22 +01:00
Volodymyr Patuta 466a257300 oups 2020-10-28 17:32:36 +01:00
Volodymyr Patuta c9ad310700 create and move robot + tests 2020-10-28 17:30:45 +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 555a0ff6b8 x and y should be public 2020-10-28 12:20:20 +01:00
Martin HART c422060faf represent the world in a struct 2020-10-28 12:07:20 +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
Martin HART c27c403827 Merge branch 'remove-instruction' into 'master'
Remove instruction

See merge request mhart/DancingDroids!31
2020-10-27 13:35:51 +01:00
Martin HART 667da3ee66 Merge branch 'remove-not-necessary' into 'master'
Remove not necessary

See merge request mhart/DancingDroids!30
2020-10-27 13:35:17 +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
Martin HART e8c02e41f7 Merge branch 'place-robot-fix-borrow' into 'master'
add place_robot + tests, changed coordinate calculation, fixed borrowing issues

See merge request mhart/DancingDroids!29
2020-10-26 20:35:40 +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
Martin HART 38a2ea98eb Merge branch 'copyright' into 'master'
Copyright

See merge request mhart/DancingDroids!28
2020-10-26 15:30:14 +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
Martin HART b98c1deb6a Merge branch 'position-move' into 'master'
change position x,y type + method is_valid and test for move robot

See merge request mhart/DancingDroids!27
2020-10-26 13:54:17 +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 9de4c1ff6b Merge branch 'create-robot' into 'master'
Add create() and new() methods to the Robot type

See merge request mhart/DancingDroids!26
2020-10-26 13:15:52 +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 bfa328c1b4 Merge branch 'master' of https://framagit.org/paris8-rust/DancingDroids
Sync teacher changes
2020-10-26 10:48:21 +01:00
Martin HART 87c7d8b5fc Update Readme.md to README.md 2020-10-26 10:45:41 +01:00
Martin HART a1234c55ee Add LICENSE GPL v3 2020-10-26 10:44:20 +01:00
Martin HART 81780b79f6 Delete LICENSE-MIT 2020-10-26 10:39:50 +01:00
Martin HART abd81983d0 Delete LICENSE-APACHE 2020-10-26 10:39:42 +01:00
Viala axel cd6576bd9c Merge branch 'fix-gitignore' into 'master'
fix .gitignore

See merge request paris8-rust/DancingDroids!13
2020-10-22 15:47:12 +02:00
EliasCubz d9e1ed1295 fix .gitignore 2020-10-22 11:44:39 +02:00