added async stone detection thread

This commit is contained in:
2023-07-24 13:51:16 +02:00
parent 22edbe9a2f
commit a2575370f9

View File

@@ -198,17 +198,17 @@ class Tetromino():
} }
elif mode == 3: elif mode == 3:
offset_map= { offset_map= {
'i': {0: 8, 1: 9, 2: 8, 3: 9}, 'i': {0: 8, 1: 10, 2: 8, 3: 10},
'a': {0: 9, 1: 9, 2: 9, 3: 9}, 'a': {0: 9, 1: 9, 2: 9, 3: 9},
'b': {0: 9, 1: 9, 2: 9, 3: 9}, 'b': {0: 9, 1: 9, 2: 9, 3: 9},
'c': {0: 10, 1: 10, 2: 10, 3: 10}, 'c': {0: 8, 1: 8, 2: 8, 3: 8},
'o': {0: 9, 1: 9, 2: 9, 3: 9}, 'o': {0: 9, 1: 9, 2: 9, 3: 9},
'd': {0: 9, 1: 9, 2: 9, 3: 9}, 'd': {0: 9, 1: 9, 2: 9, 3: 9},
't': {0: 9, 1: 9, 2: 8, 3: 9}, 't': {0: 8, 1: 8, 2: 9, 3: 8},
's': {0: 9, 1: 9, 2: 9, 3: 9}, 's': {0: 9, 1: 9, 2: 9, 3: 9},
'z': {0: 9, 1: 9, 2: 9, 3: 9}, 'z': {0: 9, 1: 9, 2: 9, 3: 9},
'j': {0: 8, 1: 9, 2: 9, 3: 9}, 'j': {0: 9, 1: 8, 2: 8, 3: 8},
'l': {0: 8, 1: 9, 2: 9, 3: 9} 'l': {0: 9, 1: 8, 2: 8, 3: 8}
} }
else: #mode == 4: else: #mode == 4:
offset_map = { offset_map = {