Caruychen / 42Hive-Lem_in

Integrated smart ant colony transport system
2 stars 0 forks source link

Flow fix #12

Closed Caruychen closed 2 years ago

Caruychen commented 2 years ago

The flow_edge functions:

Have been updated to update the origin node's is_free and is_via_augment states. This should deal with the issue where path finding lands on a node that is already taken by another path. Prevents overlapping paths.

Side note, there are memory leaks from the "parser" unit tests that need to be fixed.

crl-n commented 2 years ago

Great work! The changes work with my version of the solver (tested with subject3.map) with minimal changes to the solver code.