Caruychen / 42Hive-Lem_in

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

bugfix for pathset_trim #18

Closed crl-n closed 2 years ago

crl-n commented 2 years ago

This fixes the bug on flow-one-more-1' where a 3-path path set is chosen wrongly instead of a 4-path one. The error was a off-by-one type error inpathset_trim`. See diff for the fix.

Caruychen commented 2 years ago

Looks good! Looking at this a bit more, I had an idea. It may even be that the trimming function shouldn't be necessary, if the selection is done right. Thanks for the fix though!