|
|
|
@ -54,7 +54,6 @@ class Shape(val typeShape: TypeShape,var position: Position) {
|
|
|
|
|
|
|
|
|
|
return sharePosition
|
|
|
|
|
}
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
|
|
fun sharePositionUp(shape: Shape): MutableList<Position> {
|
|
|
|
|
val sharePosition = mutableListOf<Position>()
|
|
|
|
@ -70,9 +69,9 @@ class Shape(val typeShape: TypeShape,var position: Position) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return sharePosition
|
|
|
|
|
=======
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun sharePositionRotationRight(shape: Shape):Array<IntArray>{
|
|
|
|
|
var leftmostCol = 4
|
|
|
|
@ -133,6 +132,5 @@ class Shape(val typeShape: TypeShape,var position: Position) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return rotatedMatrix
|
|
|
|
|
>>>>>>> Enzo
|
|
|
|
|
}
|
|
|
|
|
}
|