fix tetris code: declaration now in place

This commit is contained in:
Sergey Chernov 2026-04-02 19:25:17 +03:00
parent 5346d15a9f
commit d0aaa2c256

View File

@ -49,6 +49,7 @@ val UNICODE_BOTTOM_RIGHT = "┘"
val UNICODE_HORIZONTAL = "──"
val UNICODE_VERTICAL = "│"
val UNICODE_DOT = "· "
val PIECES: List<Piece> = []
type Cell = List<Int>
type Rotation = List<Cell>
@ -468,8 +469,6 @@ fun rot(a: Cell, b: Cell, c: Cell, d: Cell): Rotation {
r
}
val PIECES: List<Piece> = []
val iRots: Rotations = []
iRots.add(rot(cell(0,1), cell(1,1), cell(2,1), cell(3,1)))
iRots.add(rot(cell(2,0), cell(2,1), cell(2,2), cell(2,3)))