minesweeper vocabulary
Factor handbook ยป Vocabulary index


Documentation
Minesweeper

Metadata
Tags:demos, games
Authors:John Benediktsson


Words

Tuple classes
ClassSuperclassSlots
cell tuple#adjacent mined? state
grid-gadget gadgetcells timer textures start end hint?
minesweeper-gadget track


Symbol words
+clicked+
+flagged+
+question+


Ordinary words
WordStack effect
#flagged( cells -- n )
#mines( cells -- n )
#mines-remaining( cells -- n )
<grid-gadget>( rows cols mines -- gadget )
<minesweeper-gadget>( -- gadget )
adjacent-flags( cells row col -- #flags )
adjacent-mines( cells row col -- #mines )
cell-at( cells row col -- cell/f )
cell-image-path( cell won? lost? -- image-path )
cells-dim( cells -- rows cols )
click-cell-at( cells row col -- ? )
click-cells-around( cells row col -- )
com-easy( gadget -- )
com-hard( gadget -- )
com-help( gadget -- )
com-medium( gadget -- )
count-neighbors( cells row col quot: ( cell -- ? ) -- n )
digit-image-path( ch -- image-path )
draw-cached-texture( path gadget -- )
draw-cells( gadget -- )
draw-hint( gadget -- )
draw-mines( n gadget -- )
draw-smiley( gadget -- )
draw-timer( n gadget -- )
each-cell( ... cells quot: ( ... row col cell -- ... ) -- ... )
elapsed-time( gadget -- n )
game-over?( cells -- ? )
lost?( cells -- ? )
make-cells( rows cols -- cells )
mark-cell-at( cells row col -- ? )
neighbors( -- value )
new-game( gadget rows cols mines -- )
new-game?( cells -- ? )
on-click( gadget -- )
on-grid( gadget quot: ( cells row col -- ? ) -- )
on-mark( gadget -- )
on-open( gadget -- )
open-cell-at( cells row col -- ? )
place-mines( cells n -- cells )
reset-cells( cells -- cells )
run-minesweeper( -- )
smiley-image-path( won? lost? clicking? -- image-path )
unmined-cell( cells -- cell )
update-counts( cells -- cells )
won?( cells -- ? )


Class predicate words
WordStack effect
cell?( object -- ? )
grid-gadget?( object -- ? )
minesweeper-gadget?( object -- ? )


Files


Metadata files


Children from resource:extra
VocabularySummary
minesweeper._resources