1 USING: accessors kernel tetris.game tetris.board tetris.piece tools.test
4 [ t ] [ <default-tetris> [ current-piece ] [ next-piece ] bi and t f ? ] unit-test
5 [ t ] [ <default-tetris> { 1 1 } can-move? ] unit-test
6 [ t ] [ <default-tetris> { 1 1 } tetris-move ] unit-test
7 [ 1 ] [ <default-tetris> dup { 1 1 } tetris-move drop current-piece location>> second ] unit-test
8 [ 1 ] [ <default-tetris> level>> ] unit-test
9 [ 1 ] [ <default-tetris> 9 >>rows level>> ] unit-test
10 [ 2 ] [ <default-tetris> 10 >>rows level>> ] unit-test
11 [ 0 ] [ 3 0 rows-score ] unit-test
12 [ 80 ] [ 1 1 rows-score ] unit-test
13 [ 4800 ] [ 3 4 rows-score ] unit-test
14 [ 1 ] [ <default-tetris> dup 3 score-rows dup 3 score-rows dup 3 score-rows level>> ] unit-test
15 [ 2 ] [ <default-tetris> dup 4 score-rows dup 4 score-rows dup 2 score-rows level>> ] unit-test