minesweeper vocabulary
Factor handbook > Vocabulary index


Summary
Minesweeper game

Meta-data
Tags:demos
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-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-medium( gadget -- )
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-mark( gadget -- )
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


Children from resource:extra
VocabularySummary
minesweeper._resourcesminesweeper._resources vocabulary