gamelib.board vocabulary
Factor handbook ยป Vocabulary index


Summary

Metadata
Parents:gamelib


Words

Tuple classes
ClassSuperclassSlots
board tuplewidth height cells


Ordinary words
WordStack effect
DOWN( -- value )
LEFT( -- value )
RIGHT( -- value )
UP( -- value )
add-copy-to-cells( board locations obj -- board )
add-to-cell( board location obj -- board )
add-to-cells( board locations obj -- board )
all-equal-value?( value seq -- ? )
cell-contains-instance?( cell class -- ? )
cell-contains?( cell object -- ? )
cell-only-contains-instance?( cell class -- ? )
cell-only-contains?( cell object -- ? )
change-cell( board location quot -- board )
delete-all-from-cell( board location obj -- board )
delete-all-from-cells( board locations obj -- board )
delete-cell( board location -- board )
delete-from-all( board obj -- board )
delete-from-cell( board location obj -- board )
delete-from-cells( board locations obj -- board )
duplicate-cell( board start dest -- board )
find-all-cells( board quot -- assoc )
find-all-cells-nopos( board quot -- assoc )
find-all-rows( board quot -- index row )
find-cell( board quot -- seq cell )
find-cell-nopos( board quot -- cell )
find-cell-pos( board quot -- seq )
find-row( board quot -- index row )
get-cell( board location -- cell )
get-cells( board locations -- seq )
get-col( board index -- seq )
get-instance-from-cell( cell class -- object )
get-row( board index -- seq )
is-board-empty?( board -- ? )
is-cell-empty?( board location -- ? )
is-empty?( cell -- ? )
label-cell( x cell y -- seq )
location-matrix( board -- loclist )
make-board( width height -- board )
make-cells( width height -- cells )
make-n-k( n k -- seq )
move-cells( board start dest -- board )
move-entire-cell( board start dest -- board )
move-entire-cell-rel( board start move -- board )
move-many-objects( board start dest objects -- board )
move-object( board object-pos move object -- board )
move-objects( board start dest object -- board )
reset-board( board -- board )
row-to-cells( seq quot -- cells )
set-all( board seq -- board )
set-cell( board location new-cell -- board )
set-cells( board locations new-cell -- board )
swap-cells( board loc1 loc2 -- board )


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


Files