This is one of a few blog posts adapted from my Dissertation project about Rotatris, a tetris-like game I made in Swift and SpriteKit. In Rotatris, players try to build “shells” of squares around a central rotating block. You can read my full written dissertation here.
These are some of the key algorithms for the game – it should give you an idea of my thought process when developing a game. My original dissertation has a few more, but i’ve cherry-picked some cool ones here.