Handbook
Glossary
rotate-piece ( piece inc -- piece )
Vocabulary
tetris
.
piece
Inputs
piece
an
object
inc
an
object
Outputs
piece
an
object
Definition
USING:
accessors
kernel
sequences
;
IN:
tetris.piece
:
rotate-piece
( piece inc -- piece )
over
tetromino>>
states>>
length
[
(rotate-piece)
]
2curry
change-rotation
;