Java Need Help Implementing Checkplayerhand Playgame Methods Videopoker Class Public Class Q37300525

Java.
Need help implementing thecheckPlayerHand()andplayGame()methods in theVideoPokerclass!

public class VideoPoker {

// default constant values
private static final int defaultBalance=100;
private static final int numberCards=5;

// default constant payout value and playerHand types
private static final int[]winningMultipliers={1,2,5,10,15,20,25,50,250};
private static final String[] winningHands={
   “Royal Pair” , “Two Pairs” , “Three of a Kind”,”Straight”, “Flush   “,
   “Full House”, “Four of a Kind”, “Straight Flush”,”Royal Flush” };

// use one deck of cards
private Decks thisDeck;

// holding current player 5-card hand, balance, bet
private List<Card> playerHand;
privateintplayerBalance;
privateintplayerBet;

/** default constructor, set balance = defaultBalance */
publicVideoPoker()
{
   this(defaultBalance);
}

/** constructor, set given balance */
publicVideoPoker(int balance)
{
   this.playerBalance= balance;
   try {
thisDeck = new Decks(1);
   } catch (Exception e) {
   System.out.println(e.getMessage());
   }
}

/**

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.