litris fixes

This commit is contained in:
2023-07-22 10:54:32 +02:00
parent 704b1f462d
commit fba0c2c506
2 changed files with 33 additions and 15 deletions

View File

@@ -169,17 +169,17 @@ class Tetromino():
def get_offset_column(self, rotation):
offset_map= {
'i': {0: 10, 1: 9, 2: 10, 3: 9},
'i': {0: 8, 1: 9, 2: 9, 3: 9},
'a': {0: 9, 1: 9, 2: 9, 3: 9},
'b': {0: 9, 1: 8, 2: 10, 3: 8},
'c': {0: 8, 1: 8, 2: 8, 3: 8},
'b': {0: 9, 1: 9, 2: 9, 3: 9},
'c': {0: 10, 1: 9, 2: 9, 3: 9},
'o': {0: 9, 1: 9, 2: 9, 3: 9},
'd': {0: 9, 1: 9, 2: 9, 3: 9},
't': {0: 9, 1: 9, 2: 10, 3: 9},
's': {0: 9, 1: 9, 2: 9, 3: 9},
'z': {0: 9, 1: 9, 2: 9, 3: 9},
'j': {0: 9, 1: 8, 2: 8, 3: 8},
'l': {0: 9, 1: 8, 2: 8, 3: 8}
't': {0: 9, 1: 9, 2: 9, 3: 9},
's': {0: 9, 1: 10, 2: 9, 3: 10},
'z': {0: 9, 1: 10, 2: 9, 3: 10},
'j': {0: 9, 1: 9, 2: 10, 3: 9},
'l': {0: 9, 1: 9, 2: 9, 3: 9}
}
return offset_map.get(self.letter)[rotation]