- Undo button
- Create deck of cards
- Shuffle cards
- Deal four cards to the board, one to each card stack
- If deck has four cards available, add them from left to right to card stacks
- If deck is empty (shouldn't happen) end game.
-
Conditions
- (1) More than one card stack is empty:
- [ ][ ][x][x]
- (2) One card stack is empty
- [ ][x][x][x]
- (3) All stacks are full
- [x][x][x][x]
- (1) More than one card stack is empty:
-
Actions
- (A) Click empty card stack [ ]
- (B) Click filled card stack [x]
-
Outcomes
- (1A, 2A) Prompt player to choose a card to fill the chosen empty card stack
- (3A) N/A
- (1B, 2B, 3B) If card is beaten by superior card, remove it. If card cannot be beaten, notify player and do nothing
- Properties
- Deck
- Board
- Card Stacks
- Cards
- Card Stacks
- Methods
- Builds Deck
- Shuffles deck
- Deals cards