I need an alogrithm to rotate blocks in tetris, I have tried looking over stackoverflow, but all solution need some pivot point and what not, I have no clue how to find that, so I'm wondering if someone can help me

I've tried basically everything from Tetris Piece Rotation Algorithm

the grid system is:

 x 1 2 3 4 5 6 7 8 9 10
y
10
9
8
7
6
5
4
3
2
1

the block list looks like this:

block = [[3, 5], [4, 5], [5, 5], [6, 5]]

where [x, y]

I basically just want tetris rotation, like this: https://tetris.fandom.com/wiki/SRS

0 Answers