munch2024 / munch

2 stars 11 forks source link

Fixes Issue #52 #53

Closed haiimkeith closed 8 months ago

haiimkeith commented 8 months ago

Fixes issue #52

Initiating Code refactoring process, this issue is in reference to the Euclidean/Manhattan calculation issue presented in issue request #52

After Refactorization: The code has been updated such that we can supply both points 1 and 2, then create one function that calculates both the Manhattan Distance as well as the Euclidean Distance in one function, which resolves issue #52 by simple removing duplication and improves efficiency of the entire project.

ChatGPT link of refactoring conversation: https://chat.openai.com/share/79ae18a1-dd79-476f-8b66-4fc72785ed07