first commit
This commit is contained in:
50
assets/scripts/BoardShape.ts
Normal file
50
assets/scripts/BoardShape.ts
Normal 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],
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user