main |
WarGame |
Player |
Deck |
Pile |
Card
Pile
secret information
upon creation
shuffle
- do the following as many times as there are cards on the list
- randomly pick two positions on the list
- swap the cards at those positions
getTopCard
- remove first card from list and give that as answer
addCard [need to know: card to add]
- add card to beginning of list
countCards[answer is: a number]
merge[need to know: a pile]
- copy other pile's list to own list
- erase other pile's list