That algorithm is not very efficient but at least it solves the pattern. I may have messed up the loop somewhere but the idea was to turn the maximum numbers of sqares each time.


I'll upload a second algorithm to discord. It's supposed to maximize distance instead of area and tends to perform better for most patterns. Eventually there may be some combination of the two approaches.


This is all work in progress now and the program is currently an aestethic mess. I'm afraid it won't be finished this week either. I'm still working on it.