Skip to content

Instantly share code, notes, and snippets.

@Michael0x2a
Created April 15, 2015 09:31
Show Gist options
  • Save Michael0x2a/206c4187b4770a468c08 to your computer and use it in GitHub Desktop.
Save Michael0x2a/206c4187b4770a468c08 to your computer and use it in GitHub Desktop.
Deck.java
// Michael Lee
// Section AP
// Tuesday, April 14, 2015
// Sample program: Deck.java
import java.util.List;
interface Deck {
public int size();
public boolean isEmpty();
public String dealCard();
public Deck dealCards(int amount);
public void addCard(String card);
public void mergeDeck(Deck other);
public void shuffle();
public List<String> toList();
public String toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment