slysnivy / Soup_Arcade

A repository dedicated to showcasing games, visual aides, and other projects that I have cooked up 🧑‍🍳
Apache License 2.0
1 stars 0 forks source link

Botaneer patch 10 #15

Closed slysnivy closed 10 months ago

slysnivy commented 10 months ago

Created recursive algorithm for determining connectivity. All that's left is to sort out the scenario's when a split path occurs (2 function calls instead of 1). After, the one with the highest y is taken into consideration (per side) with the lowest one when taking into account both sides of the pot.

This update resolves #14 where this function checks for connectivity, which considers a valid base with sides that are connected into the base. Issue #14 describes the previous update that didn't consider connectivity and included pot pieces not connected to the base (or the pot of interest).