51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
|
|
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],
|
||
|
|
]
|
||
|
|
};
|