tetris.board vocabulary
Factor handbook > Vocabulary index


Summary
tetris.board vocabulary

Meta-data
Authors:Alex Chapman


Words

Tuple classes
ClassSuperclassSlots
board tuplewidth height rows


Ordinary words
WordStack effect
<board>( width height -- board )
add-row( board -- board )
block( board block -- colour )
block-free?( board block -- ? )
block-in-bounds?( board block -- ? )
board@block( board block -- n row )
check-rows( board -- n )
location-valid?( board block -- ? )
make-rows( width height -- rows )
piece-valid?( board piece -- ? )
remove-full-rows( board -- board )
row-not-full?( row -- ? )
set-block( board block colour -- )
top-up-rows( board -- )


Class predicate words
WordStack effect
board?( object -- ? )


Files