Handbook
Glossary
rows-score ( level n -- score )
Vocabulary
tetris
.
game
Inputs
level
an
object
n
an
object
Outputs
score
an
object
Definition
USING:
combinators
kernel
math
;
IN:
tetris.game
:
rows-score
( level n -- score )
{
{
0
[
0
]
}
{
1
[
40
]
}
{
2
[
100
]
}
{
3
[
300
]
}
{
4
[
1200
]
}
}
case
swap
1
+
*
;