From d0aaa2c256400432171c2b1584b5e7d8eb2d697e Mon Sep 17 00:00:00 2001 From: sergeych Date: Thu, 2 Apr 2026 19:25:17 +0300 Subject: [PATCH] fix tetris code: declaration now in place --- examples/tetris_console.lyng | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/tetris_console.lyng b/examples/tetris_console.lyng index 08c90a6..17e1567 100755 --- a/examples/tetris_console.lyng +++ b/examples/tetris_console.lyng @@ -49,6 +49,7 @@ val UNICODE_BOTTOM_RIGHT = "┘" val UNICODE_HORIZONTAL = "──" val UNICODE_VERTICAL = "│" val UNICODE_DOT = "· " +val PIECES: List = [] type Cell = List type Rotation = List @@ -468,8 +469,6 @@ fun rot(a: Cell, b: Cell, c: Cell, d: Cell): Rotation { r } -val PIECES: List = [] - 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)))