25 Commits

Author SHA1 Message Date
Mthandazo Ndhlovu
ea99e7b1fc norm errors eliminated and parser modified 2019-05-09 17:41:07 +02:00
Tanguy MAZE
94145d3d17 minor modifications to map printing and ant paths
print map if look ok and has path
if start & end linked, only 1 operation
2019-05-09 16:26:35 +02:00
Mthandazo Ndhlovu
a21860983e Cleaned the seg faults and normed the code, only
lm_mem_utils has a norm error.
2019-05-06 08:05:37 +02:00
Mthandazo Ndhlovu
a40b6b00e7 no more leaks on all maps 2019-05-02 13:25:41 +02:00
Mthandazo Ndhlovu
8552cf8a32 semi-final parser 2019-05-02 12:58:28 +02:00
Mthandazo Ndhlovu
ee59b79e75 a bit of code cleaning on the parser 2019-04-30 12:06:58 +02:00
Tanguy MAZE
b22a1a5af7 corrected invalid read on print_map
caused by exessive ft_strdel instruction in lm_parser
2019-04-29 13:08:08 +02:00
Mthandazo Ndhlovu
a51c8ad81d code cleaning done on 80 percent of the parser functions, whats left is to re structure the syntax struct and do furthure tests to eliminate level 0 errors 2019-04-29 12:47:14 +02:00
Mthandazo Ndhlovu
6ad8cd2d95 current parser version ready for breaking.. 2019-04-26 13:37:32 +02:00
Tanguy MAZE
5b4e0c0150 modify map printing system
added functions to create, print and clear map when it's valid
2019-04-24 18:24:34 +02:00
Tanguy MAZE
fe1c85371f bug found
found bug in parser that made link adding impossible
2019-04-24 09:54:24 +02:00
Mthandazo Ndhlovu
c35deace58 Trying to trace the source of the segfault
I will breakdown the parser for a slight moment then relink it.
2019-04-22 16:00:16 +02:00
Tanguy MAZE
a8b2e31701 added finished algorithm
merged algorithm from other personnal repo
2019-04-22 10:13:09 +02:00
Tanguy MAZE
4a5c798b25 rework on score system
need to score with correct amount of ants on each paths
also secured ft_atois
2019-04-14 14:45:38 +02:00
Tanguy MAZE
9b75432c2e Added scoring system to algorithm
still need testing and optimisations
not norm-compliant
2019-04-13 14:56:39 +02:00
Mthandazo Ndhlovu
0495ba9e55 clean up code for when an error occurs
testing with all maps is what is left
2019-04-11 14:11:25 +02:00
Mthandazo Ndhlovu
eb85b914a4 Leaks and error checking almost done
function to clean traces of holder is done.
Error checking before adjacency list creation is done also.
Now focusing on breaking the parser with
invalid maps. It should be ready in a day.
2019-04-11 12:52:14 +02:00
Tanguy MAZE
86b0530bf7 clean up still in progress
eliminated most of the leaks of the parser
norming still need to be done
2019-04-11 11:40:26 +02:00
Tanguy MAZE
8c4a6aac25 a bit more of normalising
normalising lem_in WIP
2019-04-10 15:35:23 +02:00
Tanguy MAZE
5d094ebcaf Massive clean up
cleaned up unused code
normalised push_ants
libft is no longer a submodule
still need to normalise lem_in
2019-04-10 14:34:59 +02:00
Tanguy MAZE
3b893147e5 IT WORKS !
functionning ./lem_in that can read maps and display ants path
still need to clean leaks
still need remove debug info
2019-04-09 19:09:29 +02:00
Tanguy MAZE
c36f501b08 testing things
thinking of how to display the ants moving and optimise by moving at
least one on each path
2019-04-05 17:43:17 +02:00
Tanguy MAZE
0a9d7b816d Merge branch 'tmaze'
merging algorithm to master of project
2019-04-05 14:06:42 +02:00
Mthandazo Ndhlovu
1abb3fc566 invalid maps 2019-04-02 15:09:43 +02:00
Mthandazo Ndhlovu
4e2fc9f19e buggy version of the parser. debugging with fsanitizer 2019-04-01 11:48:33 +02:00