first commit

This commit is contained in:
zzc
1970-01-01 08:27:52 +08:00
commit 3c80593c3d
135 changed files with 19822 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
export type BoardShapeName = "rectangle" | "L_shape" | "T_shape" | "cross_shape" | "diamond" | "custom";
export const BoardShapes: Record<BoardShapeName, number[][]> = {
rectangle: [
[1,1,1,1,1,1],
[1,1,1,1,1,1],
[1,1,1,1,1,1],
[1,1,1,1,1,1],
[1,1,1,1,1,1],
],
L_shape: [
[1,1,1,0,0,0],
[1,1,1,0,0,0],
[1,1,1,1,1,1],
[1,1,1,1,1,1],
],
T_shape: [
[1,1,1,1,1,1,1],
[0,0,1,1,1,0,0],
[0,0,1,1,1,0,0],
[0,0,1,1,1,0,0],
],
cross_shape: [
[0,0,1,1,0,0],
[0,0,1,1,0,0],
[1,1,1,1,1,1],
[0,0,1,1,0,0],
[0,0,1,1,0,0],
],
diamond: [
[0,0,0,1,0,0,0],
[0,0,1,1,1,0,0],
[0,1,1,1,1,1,0],
[1,1,1,1,1,1,1],
[0,1,1,1,1,1,0],
[0,0,1,1,1,0,0],
[0,0,0,1,0,0,0],
[0,0,0,1,0,0,0],
],
custom: [
[0,0,0,0,-1,0,0],
[0,0,0,0,-1,0,0],
[0,0,0,0,-1,0,0],
[0,0,0,0,1,1,1],
[0,0,0,0,1,0,0],
[0,0,0,0,0,0,0],
[0,0,0,0,0,0,0],
[0,0,0,0,0,0,0],
]
};