What a stack is
A stack is the canonical grouped form of tiles. deck is an alias, but the runtime term is stack.
How the system uses stacks
- a stack owns ordered tile membership
- a stack supports shuffle, draw, and deal behavior
- stack behavior preserves hidden information and face rules
- stacks collapse back toward simpler piece states when tile counts change
Typical examples
- a full deck of standard playing cards
- a face-down pile of scenario cards
- a small draw pile created from imported tiles
Triggers
Stacks support reactive triggers that fire when their contents change:
- Tile Added and Tile Removed -- fire when a tile enters or leaves the stack
- Sleeve Added and Sleeve Removed -- fire when a sleeve enters or leaves the stack
- Shuffled -- fires when the stack is shuffled
Stack triggers can filter by piece type and tags. See Triggers for full details.