public class GivingCard
extends java.lang.Object
Constructor | Description |
---|---|
GivingCard() |
Modifier and Type | Method | Description |
---|---|---|
Card |
chooseUpperCardRandomly(java.util.ArrayList<Card> remainingCards) |
at the beginning of the game when game starts this method sets the first card
|
void |
give_n_Cards(User chosenUser,
java.util.ArrayList<Card> remainingCards,
int n,
Card upperCard) |
give n cart to a user and n is 1 when you do not have cart to put and it is other numbers according to cards
|
public void give_n_Cards(User chosenUser, java.util.ArrayList<Card> remainingCards, int n, Card upperCard)
chosenUser
- is a user who has the turnremainingCards
- a list of remaining cardsn
- number of carts we wanna give someoneupperCard
- is the top card