Modifier and Type | Method and Description |
---|---|
Card |
Euchre.deal()
A method that give each player 5 cards from the shuffled deck.
|
Card |
Player.getCard(int cnum)
A accessor that returns the Card given by a certain index.
|
Card |
Euchre.takeTrick(java.util.ArrayList<Card> active)
A method that determines which card is the highest out of those
played, and will return that card.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Card> |
Euchre.createDeck()
A helper method used to create the deck in main.
|
java.util.ArrayList<Card> |
Euchre.getDeck()
A method to return the deck.
|
java.util.ArrayList<Card> |
Player.getHand()
A accessor that returns the hand.
|
java.util.ArrayList<Card> |
Euchre.getPlay()
A method to return the played cards.
|
java.util.ArrayList<Card> |
Euchre.organizeHand(java.util.ArrayList<Card> hand)
A method used to organize the hand.
|
Modifier and Type | Method and Description |
---|---|
Suits |
EuchrePanel.pickTrump(Card top)
A method used go through the trump logic and set trump to what
is called by the player.
|
boolean |
Euchre.playable(Card lead,
Card played,
java.util.ArrayList<Card> hand)
A method that checks if the card played is playable or not.
|
static void |
Euchre.printCard(Card c)
A method that prints a card for turn up.
|
void |
Player.setCard(Card c)
A mutator to set a card to a certain index in the hand.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Card> |
Euchre.organizeHand(java.util.ArrayList<Card> hand)
A method used to organize the hand.
|
boolean |
Euchre.playable(Card lead,
Card played,
java.util.ArrayList<Card> hand)
A method that checks if the card played is playable or not.
|
static void |
Euchre.printHand(java.util.ArrayList<Card> hand)
A method that prints the hand.
|
void |
Player.setHand(java.util.ArrayList<Card> hand)
A mutator that sets the hand.
|
void |
Euchre.shuffle(java.util.ArrayList<Card> deck)
A method that shuffles the deck ArrayList then deals.
|
void |
Euchre.shuffleTest(java.util.ArrayList<Card> deck)
A method that shuffles the deck ArrayList then deals.
|
Card |
Euchre.takeTrick(java.util.ArrayList<Card> active)
A method that determines which card is the highest out of those
played, and will return that card.
|
Constructor and Description |
---|
Player(Team team,
java.util.ArrayList<Card> hand)
A Constructor that sets the players team and hand, while setting
dealer to false.
|