i noticed the code on github is older than the code on https://salvations-edge-verity.netlify.app/index.html , so i've updated it. i hope @seratne was the author of those changes, otherwise i've attributed them to the wrong human :)
i've reworked the step calculation and in the process, this fixed #5.
the reworked step calculation can now sometimes point out when outside calls are incoherent (hedges against #4 a bit). consider inside calls CST and outside "cone cylinder prism". this must be an error, because outside shapes would have three triangles, one circle, and two squares. if you're mid encounter and clicked a wrong shape, there are slightly better odds it'll tell you before you get stuck following wrong steps.
IMO it's a bit easier to think about now, but i'm certain that's very subjective. i still think i've written garbage code here too, so i left the "TODO Rework this" comment in just the same :heart_hands:
realistically it's probably plausible to have a simple lookup table of the solutions. i've had a really hard time doing that shape math, so i landed at trying to encode how i solve this encounter.
this is a two-parter:
IMO it's a bit easier to think about now, but i'm certain that's very subjective. i still think i've written garbage code here too, so i left the "TODO Rework this" comment in just the same :heart_hands:
realistically it's probably plausible to have a simple lookup table of the solutions. i've had a really hard time doing that shape math, so i landed at trying to encode how i solve this encounter.