What are the best algorithms (and explanations) for representing and rotating the pieces of a tetris game? I always find the piece rotation and representation schemes confu
for 3x3 sized tetris pieces flip x and y of your piece then swap the outer columns that's what I figured out some time