Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 303 Bytes

pile.md

File metadata and controls

11 lines (6 loc) · 303 Bytes

Pile

The Pile represents the stack of cards that whot players play on to of, during games.

Properties

top() returns the top card

push(...) adds a card to the top of the stack

reset() removes all cards except the top card, shuffles them, and places them in the market.