Skip to main content

Clean up.

·125 words·1 min

Info

This post was imported from a personal note. It may contain inside jokes, streams of consciousness, errors, and other nonsense.

The code really needed it. I was letting it go off the rails while trying to figure out the inch worm manoeuvre. Not that I figured it out yet or anything. But after a week away it was pretty hard to reason about the code. So I factored the logic for the instructions out to the instruction classes. Had to change a bunch of Tentacle methods from private to protected… not sure how I feel about that yet but.

Oh, one day I should do a binary search instead of rotating by 1° at a time to find the point just before the collision.