Some improvements and corrections. Added 'Dot' 1x1 sape
This commit is contained in:
+1
-41
@@ -23,6 +23,7 @@ class BlockType(Enum):
|
||||
"""
|
||||
Define block types with their shapes and colors
|
||||
All shapes draws starting in top left corner from left to right
|
||||
Every line mean the share rotated in clockwise direction
|
||||
"""
|
||||
O = {
|
||||
'name': 'Square',
|
||||
@@ -95,47 +96,6 @@ class BlockType(Enum):
|
||||
[[0, 1], [1, 1], [0, 1]]
|
||||
]
|
||||
}
|
||||
U = {
|
||||
'name': 'U-Shape',
|
||||
'color': (135, 135, 135), # Change color
|
||||
'min_score': 4500,
|
||||
'shapes': [
|
||||
[[1, 0, 1], [1, 1, 1]],
|
||||
[[1, 1], [1, 0], [1, 1]],
|
||||
[[1, 1, 1], [1, 0, 1]],
|
||||
[[1, 1], [0, 1], [1, 1]]
|
||||
]
|
||||
}
|
||||
# T1 = {
|
||||
# 'name': 'T-Shape+',
|
||||
# 'color': (200, 200, 200), # Change color
|
||||
# 'min_score': 10000,
|
||||
# 'shapes': [
|
||||
# [[1, 1, 1], [0, 1, 0], [0, 1, 0]],
|
||||
# [[0, 0, 1], [1, 1, 1], [0, 0, 1]],
|
||||
# [[0, 1, 0], [0, 1, 0], [1, 1, 1]],
|
||||
# [[1, 0, 0], [1, 1, 1], [1, 0, 0]]
|
||||
# ]
|
||||
# }
|
||||
# U1 = {
|
||||
# 'name': 'U-Shape+',
|
||||
# 'color': (250, 250, 250), # Change color
|
||||
# 'min_score': 10000,
|
||||
# 'shapes': [
|
||||
# [[1, 1, 1], [1, 0, 1], [1, 0, 1]],
|
||||
# [[1, 1, 1], [1, 0, 0], [1, 1, 1]],
|
||||
# [[1, 0, 1], [1, 0, 1], [1, 1, 1]],
|
||||
# [[1, 1, 1], [0, 0, 1], [1, 1, 1]]
|
||||
# ]
|
||||
# }
|
||||
# X = {
|
||||
# 'name': 'X-Shape',
|
||||
# 'color': (250, 250, 250), # Change color
|
||||
# 'min_score': 15000,
|
||||
# 'shapes': [
|
||||
# [[0, 1, 0], [1, 1, 1], [0, 1, 0]]
|
||||
# ]
|
||||
# }
|
||||
|
||||
BLOCK_TYPE = BlockType
|
||||
|
||||
|
||||
Reference in New Issue
Block a user