Tetris Piece Rotation Algorithm

前端 未结 15 867
傲寒
傲寒 2020-11-30 17:57

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

15条回答
  •  爱一瞬间的悲伤
    2020-11-30 18:05

    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

提交回复
热议问题