Course Solutions Uncategorized (Solved) : Need Help Please Upvote Student 101047981 Public Abstract Class Player Protected Hand Hand Q30403850 . . . .

(Solved) : Need Help Please Upvote Student 101047981 Public Abstract Class Player Protected Hand Hand Q30403850 . . . .

 

Need help please! will upvote!

student # 101047981

public abstract class Player{
protected Hand hand;

public Player(Hand hand){ this.hand = hand; }

/* play a card from the player’s hand */
/* returns null if they cannot play a card and the deck becomesempty */
/* do NOT return null unless you cannot play a card and the deck isempty */
public abstract Card play(Card top_of_discard_pile, Deckdeck);

public final int cardsLeft(){ return this.hand.numberOfCards();}

}

Show transcribed image text

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post